I have two Pipeline jobs in Jenkins. I need to call my CD pipeline once CI pipeline is success. Also i need to pass some values from first pipeline to my second pipeline
2
- 1Does this answer your question? Call parameterized Jenkins pipeline from another pipelinevijay v– vijay v2020-05-15 16:07:14 +00:00Commented May 15, 2020 at 16:07
- no. i need to call one pipeline from another pipelineAlien– Alien2020-05-15 18:16:51 +00:00Commented May 15, 2020 at 18:16
Add a comment |
1 Answer
If you need to call another job(whether it is a pipeline job or not), you can do it like this:
stage ('Invoke_pipelineA w params') { steps { build job: 'pipelineA', parameters: [ string(name: 'param1', value: "value1") ] } } stage ('Invoke_pipelineB without params') { steps { build job: 'pipelineA' } }