Forked from initcron/sample_jenkins_pipeline.Jenkinsfile
Created
September 9, 2025 05:54
-
-
Save ashichaudhary/dac2c616700d3d6d3a5488674f52f6d5 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