Skip to content

Commit

Permalink
pypi upload set to token
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenek-maly committed Dec 14, 2023
1 parent 46a41a4 commit 45e9148
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ pipeline {
"""
}
}
/*
stage("Deploy an artifact to PyPi") {
when { expression { isRelease } }
steps {
withCredentials([usernamePassword(credentialsId: 'bzt-pypi', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
sh "python3 -m twine upload -u ${USERNAME} -p ${PASSWORD} dist/*"
withCredentials([string(credentialsId: 'pypi-api-token', variable: 'TOKEN')]) {
sh "python3 -m twine upload -u __token__ -p ${TOKEN} dist/*"
}
}
}
*/
stage("Docker Image Push") {
steps {
withDockerRegistry([ credentialsId: "dockerhub-access", url: "" ]) {
Expand Down

0 comments on commit 45e9148

Please sign in to comment.