I have the following build pipeline set up as a job:
Stage 1 - verify all dependencies exist Stage 2 - build the new jar Stage 3 - Run integration tests Stag
Meanwhile, many other answers are obsolete, as Jenkins provides a built-in solution that allows you to restart a job from any stage: https://jenkins.io/doc/book/pipeline/running-pipelines/ It is applicable to declarative pipeline only through.