Jenkins pipeline now only publishes when on main branch
Some checks failed
ydeng/renamebycsv/pipeline/head There was a failure building this commit

This commit is contained in:
Harrison Deng 2023-04-08 13:14:45 -05:00
parent 739ac17b02
commit 9ed70b317d

3
Jenkinsfile vendored
View File

@ -13,6 +13,9 @@ pipeline {
}
}
stage("publish") {
when {
branch '**/master'
}
steps {
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
sh "python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"