deploy only master branch

Signed-off-by: olivier lamy <olamy@apache.org>
This commit is contained in:
olivier lamy 2018-12-30 11:43:50 +10:00
parent 2a1122ecf6
commit 1f1c5a3750
1 changed files with 8 additions and 1 deletions

9
Jenkinsfile vendored
View File

@ -48,7 +48,14 @@ pipeline {
stage( 'BuildAndDeploy-JDK8' ) {
steps {
script{
asfStandardBuild.mavenBuild( buildJdk, "clean deploy -U -fae -T3", 'Maven 3.5.2', defaultPublishers)
if (env.BRANCH_NAME == 'master')
{
asfStandardBuild.mavenBuild( buildJdk, "clean deploy -U -fae -T3", 'Maven 3.5.2',
defaultPublishers )
} else {
asfStandardBuild.mavenBuild( buildJdk, "clean install -U -fae -T3", 'Maven 3.5.2',
defaultPublishers )
}
}
}
}