Updated pipeline to not publish to system repo if it's a tagged version
This commit is contained in:
parent
af9c8c70b8
commit
3aa2916324
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -32,6 +32,11 @@ pipeline {
|
|||||||
stage("publish") {
|
stage("publish") {
|
||||||
parallel {
|
parallel {
|
||||||
stage ("git.reslate.systems") {
|
stage ("git.reslate.systems") {
|
||||||
|
when {
|
||||||
|
not {
|
||||||
|
tag '*.*.*'
|
||||||
|
}
|
||||||
|
}
|
||||||
environment {
|
environment {
|
||||||
CREDS = credentials('username-password-rs-git')
|
CREDS = credentials('username-password-rs-git')
|
||||||
}
|
}
|
||||||
@ -41,7 +46,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage ("pypi.org") {
|
stage ("pypi.org") {
|
||||||
when {
|
when {
|
||||||
tag '*.*'
|
tag '*.*.*'
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
TOKEN = credentials('pypi.org')
|
TOKEN = credentials('pypi.org')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user