Reputation: 21
I have three stages in my pipeline.
And i am going to trigger this pipeline remotely using jenkins CLI and then promote it to next stages based on need. Is there any CLI commands to trigger a pipeline to move to next stage?
Upvotes: 0
Views: 584
Reputation: 4678
You can use input as the blocking part, like
stage {
steps {
//other steps, and finally the input
input id: 'Input1', message: 'Deploy to Production?'
}
}
For remotely triggering just do
https://[jenkins_base_URL]/job/[job_name]/[build_id]/input/Input1/proceedEmpty
If it would complain about crumb
https://MY_JENKINS_RUL/crumbIssuer/api/json
Upvotes: 1