Jenkins 2 has pipelines has a first class citizen. However, in the examples the tasks seem to be executed as a single sequence:
node {
// Mark the code checkout 'stage'....
stage 'Checkout'
// Get some code from a GitHub repository
git url: 'git@github.com:elifesciences/elife-bot.git'
// Mark the code build 'stage'....
stage 'Build'
echo "Unit tests will run here"
stage "Production"
echo "Deploying to production environment"
}
For deployment into production system it's often useful to require manual approval; is there a way to insert a manual button to press inside a pipeline?
I have been looking for possible steps to accomplish this on the docs, to no avail.