Always deploy snapshot from master (#250)

Signed-off-by: Mickael Istria <mistria@redhat.com>
This commit is contained in:
Mickael Istria 2019-05-29 05:13:49 +02:00 committed by Olivier Lamy
parent d3ace78602
commit 660e745d85
1 changed files with 9 additions and 1 deletions

10
Jenkinsfile vendored
View File

@ -38,6 +38,14 @@ node(jenkinsEnv.nodeSelection(osNode)) {
}
def WORK_DIR=pwd()
def MAVEN_GOAL='verify'
stage('Configure deploy') {
when {
branch 'master'
}
MAVEN_GOAL='deploy -DdeployAtEnd=true'
}
stage('Build / Unit Test') {
String jdkName = jenkinsEnv.jdkFromVersion(buildOs, buildJdk)
@ -51,7 +59,7 @@ node(jenkinsEnv.nodeSelection(osNode)) {
invokerPublisher(),
pipelineGraphPublisher()
]) {
sh "mvn clean verify -B -U -e -fae -V -Dmaven.test.failure.ignore=true"
sh "mvn clean ${MAVEN_GOAL} -B -U -e -fae -V -Dmaven.test.failure.ignore=true"
}
dir ('apache-maven/target') {
sh "mv apache-maven-*-bin.zip apache-maven-dist.zip"