Now publishing to pypi.org on release
This commit is contained in:
parent
3b2cf916fd
commit
ca59751c35
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@ -30,11 +30,26 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("publish") {
|
stage("publish") {
|
||||||
|
parallel {
|
||||||
|
stage ("git.reslate.systems") {
|
||||||
environment {
|
environment {
|
||||||
CREDS = credentials('4d6f64be-d26d-4f95-8de3-b6a9b0beb311')
|
TOKEN = credentials('git.reslate.systems')
|
||||||
}
|
}
|
||||||
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/ydeng/pypi -u __token__ -p ${TOKEN} --non-interactive --disable-progress-bar --verbose dist/*'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage ("pypi.org") {
|
||||||
|
when {
|
||||||
|
tag '*.*'
|
||||||
|
}
|
||||||
|
environment {
|
||||||
|
TOKEN = credentials('pypi.org')
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh returnStatus: true, script: 'python -m twine upload -u __token__ -p ${TOKEN} --non-interactive --disable-progress-bar --verbose dist/*'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user