-3

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

1 Answer 1

0

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' } } 
Sign up to request clarification or add additional context in comments.

2 Comments

can i use call the value directly in my second pipeline. Like param1
How can use the value in my second pipeline

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.