I Just added a PR to jx-release-version
jenkins-x/jx-release-version#32
This fix will fallback to base version and not "0.0.0". Though if base version cannot be found from file then it will use "0.0.0".
Working on adding support for automake, cmake and gradle.
Hi everyone. I need some pair of eyes to debug a problem :) Anyone sees what's wrong with:
node() {
echo "test"
def reader = currentBuild.rawBuild.getLogReader()
reader.eachLine() { line ->
echo "Line: ${line}"
if (line.matches(".*test.*")) {
echo "got it!"
}
}
}
It's printing only the 1st log line. More details on https://issues.jenkins-ci.org/browse/JENKINS-54128?focusedCommentId=367383&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-367383
Thx!
getting weird, the following fails:
node() {
echo "test"
def reader = currentBuild.rawBuild.getLogReader()
def br = new BufferedReader(reader)
def line = null
def buffer = new ArrayList()
while (line = br.readLine()) {
buffer.add(line)
}
echo "RESULT: ${buffer}"
}
but the following works:
node() {
echo "test"
def reader = currentBuild.rawBuild.getLogReader()
def br = new BufferedReader(reader)
def line = null
def buffer = new ArrayList()
// while (line = br.readLine()) {
// buffer.add(line)
// }
buffer.add(br.readLine())
buffer.add(br.readLine())
buffer.add(br.readLine())
echo "RESULT: ${buffer}"
}
stderr: Warning: Identity file /var/lib/jenkins/workspace/centos-build-@tmp/ssh1961946035497411897.key not accessible: No such file or directory.
Note that name...."centos-build-"....there should be more there...
--> Where can I find a good doc on how build phases are handled?
(i.e. "pre-submit" vs "master" vs whatever needs to be at the end of that name)
sh "python -u build_platform ${env.JOB_NAME}"