Decide on return value of job using pipeline plugin

24 views
Skip to first unread message

Andreas Wuz

unread,
Dec 20, 2016, 5:28:05 AM12/20/16
to Jenkins Users
Hi,

I am building a pipeline in Jenkins 2.36 with the pipeline plugin. I have some jobs to execute.

To call the job I use: build job: 'transformInput', parameters: [string(name: 'cert_request', value: ''), string(name: 'cert_signature', value: ''), string(name: 'public_cert', value: '')], all works fine

But now I have to check whether the job was successful or not. When it ended successful, another job (e.g. JOB2) should be built. When it failed, job JOB3 should be built.

How can I perform this "if" with the pipeline plugin?
Reply all
Reply to author
Forward
0 new messages