Permalink
Browse files

APPNG-2216 make sure artifact ends with -SNAPSHOT

  • Loading branch information...
madness-inc committed Nov 30, 2018
1 parent cb3a81a commit e81cc8ace801a57f372a4d1dbb6294d6f831eac0
Showing with 3 additions and 2 deletions.
  1. +3 −2 Jenkinsfile
@@ -21,12 +21,13 @@ node {
}

stage('Maven Build') {
def SNAPSHOT = 'SNAPSHOT'
def CURRENT = sh (
script: "mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version|grep -Ev '(^\\[|Download\\w+:)'",
returnStdout: true
).trim()
replaceVersionInResources(CURRENT, CURRENT + '_' + BUILD_VERSION, readme)
replaceVersionInResources(CURRENT, CURRENT + '_' + BUILD_VERSION, resources)
replaceVersionInResources(SNAPSHOT, BUILD_VERSION + '-' + SNAPSHOT, readme)
replaceVersionInResources(SNAPSHOT, BUILD_VERSION + '-' + SNAPSHOT, resources)
sh "'${mvnHome}/bin/mvn' clean deploy -Pci -Djavax.xml.accessExternalSchema=all"
sh "'${mvnHome}/bin/mvn' javadoc:aggregate"
}

0 comments on commit e81cc8a

Please sign in to comment.