Skip to content

Instantly share code, notes, and snippets.

@itzg
Created March 30, 2017 21:47
Show Gist options
  • Save itzg/81cf816e3a0844b990a5267a9d2eb370 to your computer and use it in GitHub Desktop.
Save itzg/81cf816e3a0844b990a5267a9d2eb370 to your computer and use it in GitHub Desktop.
A declarative syntax Jenkinsfile for doing a simple maven build
pipeline {
agent any
tools {
maven 'apache-maven-3.3.9'
}
stages {
stage('Build') {
steps {
sh 'mvn clean package'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment