Re: How to start a job from another job in a declarative pipeline?

2017-04-13 Thread Idan Adar
That was it... just had to specify the branch. d'oh. build job: '/master', wait: false On Thursday, April 13, 2017 at 10:42:46 AM UTC+3, Idan Adar wrote: > > I should mention that both jobs are multi-branch jobs... > should the job name also somehow incorporate the branch name? i.e. >

Re: How to start a job from another job in a declarative pipeline?

2017-04-13 Thread Idan Adar
I should mention that both jobs are multi-branch jobs... should the job name also somehow incorporate the branch name? i.e. "develop" -- 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

Re: How to start a job from another job in a declarative pipeline?

2017-04-12 Thread Idan Adar
Yep, found "build" as well. I thought maybe it's done differently in declarative pipelines... Ended up with the following, however despite this, it did not start. post { // Run end-to-end tests, if requested success { script { if (BRANCH_NAME == "develop") {

Re: How to start a job from another job in a declarative pipeline?

2017-04-12 Thread Danny Rehelis
This is how I do this, should be easy enough - pipeline { stages { stage ('xxx') { steps { ... ... build job: '', parameters: [ string(name: 'PARAM1', value: "xxx"), string(name: 'PARAM2, value: "yyy") ]

How to start a job from another job in a declarative pipeline?

2017-04-12 Thread Idan Adar
Hi, Lets assume there are two job: 1. a job for a micro-service repository 2. a job for end-to-end tests I'd like, in specific cases, to start the end-to-end tests job from the micro-service job. For example, after introducing a change that even though passed unit testing and integration