Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ashichaudhary/dac2c616700d3d6d3a5488674f52f6d5 to your computer and use it in GitHub Desktop.

Select an option

Save ashichaudhary/dac2c616700d3d6d3a5488674f52f6d5 to your computer and use it in GitHub Desktop.
Sample Jenkins Pipeline
pipeline {
agent any
stages{
stage("one"){
steps{
echo 'step 1'
sleep 3
}
}
stage("two"){
steps{
echo 'step 2'
sleep 9
}
}
stage("three"){
steps{
echo 'step 3'
sleep 5
}
}
}
post{
always{
echo 'This pipeline is completed..'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment