Only publish on Azure for SNAPSHOT releases (#43)

* Only publish on Azure for SNAPSHOT releases

Signed-off-by: Edward Evans <edward.joshua.evans@gmail.com>

* Fix comment char

Signed-off-by: Edward Evans <edward.joshua.evans@gmail.com>
pull/44/head
Edward 5 years ago committed by Joshua Fernandes
parent 8a576a2ea1
commit 89750b3773
  1. 7
      Jenkinsfile

7
Jenkinsfile vendored

@ -298,6 +298,12 @@ exit $status
docker.image(docker_image_dind).withRun('--privileged') { d -> docker.image(docker_image_dind).withRun('--privileged') { d ->
docker.image(build_image).inside("--link ${d.id}:docker") { docker.image(build_image).inside("--link ${d.id}:docker") {
stage(stage_name + 'Calculate variables') {
def gradleProperties = readProperties file: 'gradle.properties'
version = gradleProperties.version
}
if (version ==~ /.*-SNAPSHOT/) { // Only publish snapshots to Azure
stage(stage_name + 'Prepare') { stage(stage_name + 'Prepare') {
sh './gradlew --no-daemon --parallel clean assemble' sh './gradlew --no-daemon --parallel clean assemble'
} }
@ -318,6 +324,7 @@ exit $status
} }
} }
} }
}
} catch (e) { } catch (e) {
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
} finally { } finally {

Loading…
Cancel
Save