diff --git a/ci/Publish-WebappArtifacts.Jenkinsfile b/ci/Publish-WebappArtifacts.Jenkinsfile index 65de70e4944d..4d9f561ccd43 100644 --- a/ci/Publish-WebappArtifacts.Jenkinsfile +++ b/ci/Publish-WebappArtifacts.Jenkinsfile @@ -1,7 +1,7 @@ pipeline { environment { PATH="${env.NODE_PATH}:${env.PATH}:/home/jenkins/emsdk/upstream/bin/:/home/jenkins/emsdk/:/home/jenkins/emsdk/upstream/emscripten" - VERSION = sh(returnStdout: true, script: "node -p -e \"require('./package.json').version\" | tr -d \"\n\"") + VERSION=sh(returnStdout: true, script: "node -p -e \"require('./package.json').version\" | tr -d \"\n\"") } options { preserveStashes() @@ -52,10 +52,12 @@ pipeline { def filePath = "webapp_built.tar.gz" def util = load "ci/jenkins-lib/util.groovy" + echo ">>>>>>>>>>>>>> ${env.VERSION}" + util.downloadFromNexus( groupId: "app", artifactId: "webapp", - version: "${VERSION}", + version: "${env.VERSION}", outFile: "${WORKSPACE}/${filePath}", fileExtension: "tar.gz" ) @@ -83,7 +85,7 @@ pipeline { writeFile file: "notes.txt", text: params.releaseNotes withCredentials([string(credentialsId: 'github-access-token', variable: 'GITHUB_TOKEN')]) { - sh '''node buildSrc/createReleaseDraft.js --name ${VERSION} --tag tutanota-release-${VERSION} --notes notes.txt''' + sh '''node buildSrc/createReleaseDraft.js --name ${env.VERSION} --tag tutanota-release-${env.VERSION} --notes notes.txt''' } } }