From 5118a25b6afc3d9be92e1908b93b664fcc669926 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 10 Jan 2025 17:41:42 +0000 Subject: [PATCH] publish step will now fail if twine upload fails --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8de8402..25c9746 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,7 +34,7 @@ pipeline { 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/*' + sh 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/*' } } }