From 1338ef5f8e69ece3a3ac5dada49f3dd1e6153887 Mon Sep 17 00:00:00 2001 From: cclecle Date: Tue, 21 Mar 2023 23:56:48 +0000 Subject: [PATCH] fix usernamePassword in jenkins --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 42619e0..454b119 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -557,7 +557,7 @@ pipeline { """.stripMargin()) } if((_GIT_BRANCH=="master") && (bPushMasterOnPypi)) { - withCredentials([string( credentialsId: _PypiCredentials, passwordVariable: 'PYPI_PASSWORD', usernameVariable: 'PYPI_USERNAME')]) { + withCredentials([usernamePassword( credentialsId: _PypiCredentials, passwordVariable: 'PYPI_PASSWORD', usernameVariable: 'PYPI_USERNAME')]) { sh(script: """#!/bin/sh - |. ~/TOOLS_ENV/bin/activate |exec twine twine upload -r ${PY_PROJECT_NAME} dist/* -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} --non-interactive --disable-progress-bar -- 2.47.3