Skip to content

Instantly share code, notes, and snippets.

@sdr01810
Last active June 21, 2017 21:22
Show Gist options
  • Save sdr01810/4ae0b85eec3ef3347ecb874aee7fc878 to your computer and use it in GitHub Desktop.
Save sdr01810/4ae0b85eec3ef3347ecb874aee7fc878 to your computer and use it in GitHub Desktop.
A simple Jenkinsfile example; useful for confirming a Jenkins installation.
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