Last active
June 21, 2017 21:22
-
-
Save sdr01810/4ae0b85eec3ef3347ecb874aee7fc878 to your computer and use it in GitHub Desktop.
A simple Jenkinsfile example; useful for confirming a Jenkins installation.
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
pipeline { | |
agent { docker 'maven' } | |
stages { | |
stage('build') { | |
steps { | |
sh 'echo "Hello World"' | |
sh 'mvn --version || :' | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment