mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-06 05:48:18 -05:00
15 lines
569 B
Groovy
15 lines
569 B
Groovy
stage('Upload to github')
|
|
{
|
|
node('ActiveClientMacosxBuilder') {
|
|
deleteDir()
|
|
checkout scm
|
|
withPythonEnv('/usr/local/bin/python3.7') {
|
|
withCredentials([usernamePassword(credentialsId: 'github_friendsofgalaxy', usernameVariable: 'GITHUB_USERNAME', passwordVariable: 'GITHUB_TOKEN')]) {
|
|
sh 'pip install -r jenkins/requirements.txt'
|
|
def version = sh(returnStdout: true, script: 'python setup.py --version').trim()
|
|
sh "python jenkins/release.py $version"
|
|
}
|
|
}
|
|
}
|
|
}
|