File tree Expand file tree Collapse file tree 1 file changed +19
-9
lines changed
Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -597,10 +597,9 @@ def call(){
597597 parallel{
598598 stage(' Deploy to pypi' ) {
599599 agent {
600- dockerfile {
601- filename ' ci/docker/python/linux/Dockerfile'
602- label ' linux && docker && x86'
603- additionalBuildArgs ' --build-arg PIP_EXTRA_INDEX_URL --build-arg PIP_INDEX_URL --build-arg PIP_CACHE_DIR=/.cache/pip'
600+ docker{
601+ image ' ghcr.io/astral-sh/uv:debian'
602+ args ' --mount source=python-jenkins-tmp-getmarcapi,target=/tmp --tmpfs /.cache/uv:exec --tmpfs /tmp_data:exec -e UV_PROJECT_ENVIRONMENT=/tmp_data/.venv'
604603 }
605604 }
606605 when{
@@ -626,11 +625,22 @@ def call(){
626625 }
627626 steps{
628627 unstash ' PYTHON_PACKAGES'
629- pypiUpload(
630- credentialsId : ' jenkins-nexus' ,
631- repositoryUrl : SERVER_URL ,
632- glob : ' dist/*'
633- )
628+ withEnv([" TWINE_REPOSITORY_URL=${ SERVER_URL} " ,]){
629+ withCredentials(
630+ [
631+ usernamePassword(
632+ credentialsId : ' jenkins-nexus' ,
633+ passwordVariable : ' TWINE_PASSWORD' ,
634+ usernameVariable : ' TWINE_USERNAME'
635+ )
636+ ]
637+ ){
638+ sh(
639+ label : ' Uploading to pypi' ,
640+ script : ' uv run --only-group=publish twine upload --disable-progress-bar --non-interactive dist/*'
641+ )
642+ }
643+ }
634644 }
635645 post{
636646 cleanup{
You can’t perform that action at this time.
0 commit comments