Created
June 12, 2018 12:27
-
-
Save evagonz/a7d96c719cba693a052d325de6c564aa to your computer and use it in GitHub Desktop.
Jenkinsfile examples for: https://medium.com/devopslinks/a-hacky-hackers-guide-to-hacking-together-jenkins-scripted-pipelines-and-getting-them-to-do-things-a1e943cb8d11
This file contains 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
node('centos') { | |
stage('step 1') { | |
echo 'This is the first stage.' | |
} | |
stage('step 2') { | |
echo 'This is stage 2, running on the same node as stage 1. By having both stage blocks *inside* the node block, the pipeline runs much quicker.' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment