1

Is there any Rest APIs provided by jenkins to restart from a stage in a pipeline?

I am trying to restart a pipeline from a stage. In UI it is possible using 'restart from stage', but there are no API support for the same.

1 Answer 1

0
  • Using API, it doesn't look to be possible.
  • In the other hand, Jenkins CLI provides this option :

restart-from-stage : Restart a completed Declarative Pipeline build from a given stage.

java -jar jenkins-cli.jar -s http://[ip]:[port]/ -auth user:password restart-from-stage -j [JOB_NAME] -s [stage name]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.