Added stage for publishing to test.pypi.org when the tag a version number.

This commit is contained in:
2025-01-16 21:22:49 +00:00
parent 206a105bf9
commit 4fe0f0f287
3 changed files with 20 additions and 32 deletions

25
Jenkinsfile vendored
View File

@@ -30,11 +30,26 @@ pipeline {
}
}
stage("publish") {
environment {
CREDS = credentials('4d6f64be-d26d-4f95-8de3-b6a9b0beb311')
}
steps {
sh returnStatus: true, script: 'python -m twine upload --repository-url https://git.reslate.systems/api/packages/${CREDS_USR}/pypi -u ${CREDS_USR} -p ${CREDS_PSW} --non-interactive --disable-progress-bar --verbose dist/*'
parallel {
stage ("git.reslate.systems") {
environment {
CREDS = credentials('4d6f64be-d26d-4f95-8de3-b6a9b0beb311')
}
steps {
sh returnStatus: true, script: 'python -m twine upload --repository-url https://git.reslate.systems/api/packages/${CREDS_USR}/pypi -u ${CREDS_USR} -p ${CREDS_PSW} --non-interactive --disable-progress-bar --verbose dist/*'
}
}
stage ("test.pypi.org") {
when {
tag '*.*'
}
environment {
TOKEN = credentials('test.pypi.org')
}
steps {
sh returnStatus: true, script: 'python -m twine upload -r testpypi -u __token__ -p ${TOKEN} --non-interactive --disable-progress-bar --verbose dist/*'
}
}
}
}
}