diff --git a/Jenkinsfile b/Jenkinsfile index 1f7258651..7321895be 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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: "" ]) {