Twine repo url
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
This commit is contained in:
parent
89c37aca22
commit
c154a463fd
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
|
@ -7,6 +7,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
environment {
|
environment {
|
||||||
GITEA_CREDS = credentials('AMARILLO-JENKINS-GITEA-USER')
|
GITEA_CREDS = credentials('AMARILLO-JENKINS-GITEA-USER')
|
||||||
|
TWINE_REPO_URL = "https://git.gerhardt.io/api/packages/amarillo/pypi"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Create virtual environment') {
|
stage('Create virtual environment') {
|
||||||
|
|
@ -38,7 +39,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Publish package') {
|
stage('Publish package') {
|
||||||
steps {
|
steps {
|
||||||
sh 'python -m twine upload --repository gitea --username $GITEA_CREDS_USR --password $GITEA_CREDS_PSW ./dist/*'
|
sh 'python -m twine upload --repository-url $TWINE_REPO_URL --username $GITEA_CREDS_USR --password $GITEA_CREDS_PSW ./dist/*'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue