Fix pipeline

This commit is contained in:
Romuald Juchnowicz-Bierbasz
2019-05-21 14:18:45 +02:00
parent f5361cd5ab
commit 3b296cbcc9

View File

@@ -1,13 +1,13 @@
stage('Upload to github')
{
node('ActiveClientWindowsBuilder') {
node('ActiveClientMacosxBuilder') {
deleteDir()
checkout scm
withPythonEnv('python') {
withCredentials([usernamePassword(credentialsId: 'github_friendsofgalaxy', usernameVariable: 'GITHUB_USERNAME', passwordVariable: 'GITHUB_TOKEN')]) {
bat 'pip install -r jenkins/requirements.txt'
def version = bat(returnStdout: true, script: 'python setup.py --version').trim()
bat "python jenkins/release.py $version"
sh 'pip install -r jenkins/requirements.txt'
def version = sh(returnStdout: true, script: 'python setup.py --version').trim()
sh "python jenkins/release.py $version"
}
}
}