Skip to content

Commit

Permalink
Always deploy snapshot from master (#250)
Browse files Browse the repository at this point in the history
Signed-off-by: Mickael Istria <mistria@redhat.com>
  • Loading branch information
mickaelistria authored and olamy committed May 29, 2019
1 parent d3ace78 commit 660e745
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Jenkinsfile
Expand Up @@ -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)
Expand All @@ -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"
Expand Down

0 comments on commit 660e745

Please sign in to comment.