more meaningful description of a step

2017-07-11 Thread Jakub Pawlinski
Hi, Recently https://issues.jenkins-ci.org/browse/JENKINS-37324 was solved. In sprint review Sam Van Oort demonstrated the foundation for this https://www.youtube.com/watch?v=HhiUY70RVJY&t=510 He mentions there possibili

Re: jenkins pipeline script params not recognized, bad substitution error

2017-07-11 Thread Jakub Pawlinski
try using double quote: sh "python deploy.py ${params.version}" I think single quotes do not evaluate strings -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Is pipeline timeout suppose to work?

2017-07-11 Thread Jakub Pawlinski
I use this on pipeline level and it works fine there, haven't tried on stage level tho. pipeline { options { timeout(time: 12, unit: 'HOURS') timestamps() } ... } -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group

ParentJob and ParentBuild as properties

2017-07-11 Thread Jakub Pawlinski
Hi, In my declarative pipeline I'm using some data from parent job, till now I was processing those in single script clause and setting : String ParentJobName = "" String ParentBuildNumber = "" pipeline { stages { stage ('Read Parameters') { steps { script { def parentJob = GetParentJob(params

Declarative parallel stages

2017-07-11 Thread Jakub Pawlinski
In Blue Ocean 1.1.4 I have tried everything from and some own ideas, nothing seems to work: stages { stage('Parallel1') { parallel 'branch1': { node('n1') { stage('Unit 1') { echo "1" } } }, 'branch2': { node('n2') { stage('Unit 2') { echo "2" } } } } } * Result: *Sta

java.io.NotSerializableException when trying to assign local variable to propery

2017-08-03 Thread Jakub Pawlinski
I my pipeline I use properties of ParentJob (the job that triggered current job) multiple times. I wrote script to evaluate it, but it order to do this only once, I wanted to store it in property outside pipeline, unfortunately this brings NotSerializableException regardless that it actually wo