Skip to content

Instantly share code, notes, and snippets.

@bingshiao
Created February 13, 2018 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bingshiao/8218b5a41573a61ab2456e3e96065b78 to your computer and use it in GitHub Desktop.
Save bingshiao/8218b5a41573a61ab2456e3e96065b78 to your computer and use it in GitHub Desktop.
node {
stage("build") {
git 'https://github.com/jenkinsci/pipeline-maven-plugin.git'
withMaven(maven: 'maven 3.5.2', options: [
concordionPublisher(disabled: true),
dependenciesFingerprintPublisher(disabled: true),
findbugsPublisher(disabled: true),
artifactsPublisher(disabled: true),
invokerPublisher(disabled: true),
jgivenPublisher(disabled: true),
junitPublisher(disabled: true),
openTasksPublisher(disabled: true),
pipelineGraphPublisher(disabled: true)]) {
sh "mvn clean deploy -DskipTests -DaltDeploymentRepository=central::default::file:///var/jenkins_home/.m2/repository"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment