diff --git a/Jenkinsfile b/Jenkinsfile index b10ef3cc..533d5627 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -100,7 +100,7 @@ pipeline { steps { timeout(time: 60, unit: 'MINUTES') { script { - sh "rm -rf build;./gradlew --init-script init.gradle distributionZip" + sh "./gradlew --init-script init.gradle distributionZip" if (isReleaseVersion(versionText)) { utilsLib.appendBuildDescription("Release ${versionText}") } @@ -265,7 +265,7 @@ pipeline { def getVersion() { def version = sh( script: "./gradlew --init-script init.gradle -q -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false printVersion", - returnStdout: true).trim() + returnStdout: true).trim().tokenize("\n").last() if (!version) { error "Version must be set" }