Skip to content

Instantly share code, notes, and snippets.

@initcron
Created December 21, 2020 03:45
Show Gist options
  • Select an option

  • Save initcron/7dcedd5a6b0353e12396a465e23cc4a3 to your computer and use it in GitHub Desktop.

Select an option

Save initcron/7dcedd5a6b0353e12396a465e23cc4a3 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..'
}
}
}
@ashichaudhary
Copy link

Latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment