Created
February 13, 2018 06:36
-
-
Save bingshiao/8218b5a41573a61ab2456e3e96065b78 to your computer and use it in GitHub Desktop.
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
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