mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-03-06 07:27:24 -05:00
15 lines
553 B
Groovy
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}"
|
|
}
|
|
}
|
|
}
|
|
}
|