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.
input
step in the pipeline which stops and asks the user for input (or to abort the build). However, the stage and the status indicator keeps flashing while I wanted a stable state (e.g. you get into it Friday afternoon and decide to deploy on Monday.)