From f5361cd5abc90d217f89ba37e62492c30ddd4a5c Mon Sep 17 00:00:00 2001 From: Romuald Juchnowicz-Bierbasz Date: Tue, 21 May 2019 14:09:57 +0200 Subject: [PATCH] Fix pipeline --- jenkins/release.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkins/release.groovy b/jenkins/release.groovy index 64c9488..f5f0119 100644 --- a/jenkins/release.groovy +++ b/jenkins/release.groovy @@ -6,8 +6,8 @@ stage('Upload to github') withPythonEnv('python') { withCredentials([usernamePassword(credentialsId: 'github_friendsofgalaxy', usernameVariable: 'GITHUB_USERNAME', passwordVariable: 'GITHUB_TOKEN')]) { bat 'pip install -r jenkins/requirements.txt' - version = bat(returnStdout: true, script: 'python setup.py --version').trim() - bat "python jenkins/release.py ${version}" + def version = bat(returnStdout: true, script: 'python setup.py --version').trim() + bat "python jenkins/release.py $version" } } }