Created
June 12, 2018 12:25
-
-
Save evagonz/c34092ac618de8414a4da1777d816837 to your computer and use it in GitHub Desktop.
Jenkinsfile example 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
#!/usr/bin/env groovy | |
stage('build') { | |
node('java8') { | |
// this is a comment | |
} | |
} | |
stage('test') { | |
node('testing') { | |
// this is where testing code goes | |
} | |
} | |
stage('deploy') { | |
node('deploy') { | |
// push stuff to aws or something | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment