Skip to content

Instantly share code, notes, and snippets.

@dileeph
Created January 2, 2016 23:11
Show Gist options
  • Save dileeph/8d5a23220db55955fa36 to your computer and use it in GitHub Desktop.
Save dileeph/8d5a23220db55955fa36 to your computer and use it in GitHub Desktop.
jenkins-workflow-example-1
stage 'Dev'
node {
git url: 'https://github.com/jglick/simple-maven-project-with-tests.git'
mvn 'clean package'
}
def mvn(args) {
sh "${tool 'M3'}/bin/mvn ${args}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment