Updated 'Jenkinsfile'
All checks were successful
ydeng/mltraining/pipeline/head This commit looks good

This commit is contained in:
Harrison Deng 2023-06-02 13:49:14 +00:00
parent 4c0e7fe25c
commit 2ec0d35edc

2
Jenkinsfile vendored
View File

@ -25,7 +25,7 @@ pipeline {
CREDS = credentials('rs-git-package-registry-ydeng') CREDS = credentials('rs-git-package-registry-ydeng')
} }
when { when {
branch '**/main' branch '**/master'
} }
steps { 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 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/*'