Files
galaxy-integrations-python-api/jenkins/release.groovy
Romuald Bierbasz 0bc8000f14 Fix release pipeline
2019-05-21 11:10:52 +02:00

15 lines
553 B
Groovy

stage('Upload to github')
{
node('ActiveClientWindowsBuilder') {
deleteDir()
checkout scm
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}"
}
}
}
}