Jenkins pipeline now only publishes when on main branch
Some checks failed
ydeng/renamebycsv/pipeline/head There was a failure building this commit
Some checks failed
ydeng/renamebycsv/pipeline/head There was a failure building this commit
This commit is contained in:
parent
739ac17b02
commit
9ed70b317d
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -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/*"
|
||||
|
Loading…
Reference in New Issue
Block a user