Created
December 21, 2020 03:45
-
-
Save initcron/7dcedd5a6b0353e12396a465e23cc4a3 to your computer and use it in GitHub Desktop.
Sample Jenkins Pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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