Fix pipeline

This commit is contained in:
Romuald Juchnowicz-Bierbasz
2019-05-21 14:09:57 +02:00
parent 758909efba
commit f5361cd5ab

View File

@@ -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"
}
}
}