Skip to content

Commit ffae0aa

Browse files
committed
Fixup Jenkinsfiles
1 parent bcde1af commit ffae0aa

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ pipeline {
103103
// sh 'twine upload --config-file .pypirc dist/*'
104104
//}
105105
environment {
106-
TWINE_REPOSITORY_URL = 'http://gitea.lan:3000/api/packages/root/pypi'
107-
TWINE_CREDENTIALS = credentials('gitea')
108-
TWINE_USERNAME = TWINE_CREDENTIALS_USR
109-
TWINE_PASSWORD = TWINE_CREDENTIALS_PSW
106+
UV_PUBLISH_URL = 'http://gitea.lan:3000/api/packages/root/pypi'
107+
CREDENTIALS = credentials('gitea')
108+
UV_PUBLISH_USERNAME = "$CREDENTIALS_USR"
109+
UV_PUBLISH_PASSWORD = "$CREDENTIALS_PSW"
110110
}
111111
steps {
112112
sh './tools/deploy-package.sh'

Jenkinsfile.groovy

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ node {
6161
)
6262
}
6363
stage('Test Python package') {
64-
sh 'pip install -e .'
65-
sh 'pytest'
64+
sh './tools/test-package.sh'
6665
junit(
6766
testResults: 'build/test-report.xml'
6867
)
@@ -80,13 +79,13 @@ node {
8079
// sh 'twine upload --config-file .pypirc dist/*'
8180
//}
8281
withEnv([
83-
'TWINE_REPOSITORY_URL=http://gitea.lan:3000/api/packages/root/pypi'
82+
'UV_PUBLISH_URL=http://gitea.lan:3000/api/packages/root/pypi'
8483
]) {
8584
withCredentials([
8685
usernamePassword(
8786
credentialsId: 'gitea',
88-
usernameVariable: 'TWINE_USERNAME',
89-
passwordVariable: 'TWINE_PASSWORD'
87+
usernameVariable: 'UV_PUBLISH_USERNAME',
88+
passwordVariable: 'UV_PUBLISH_PASSWORD'
9089
)
9190
]) {
9291
sh './tools/deploy-package.sh'

0 commit comments

Comments
 (0)