diff --git a/jobs/templates/swh-pypi.yaml b/jobs/templates/swh-pypi.yaml index 999904e..d7c7e71 100644 --- a/jobs/templates/swh-pypi.yaml +++ b/jobs/templates/swh-pypi.yaml @@ -1,44 +1,46 @@ - job-template: name: "{name}/pypi-upload" display-name: "Upload to PyPI" docker_image: tox project-type: pipeline sandbox: true properties: - build-discarder: artifact-num-to-keep: 10 + - copyartifact: + projects: '*' parameters: - git-parameter: name: GIT_TAG description: git tag to process type: PT_TAG sortMode: DESCENDING_SMART selectedValue: TOP - choice: name: PYPI_HOST description: | PYPI registry to publish to when built revision is a tag. There must exists a usernamePassword credential object with that name. The pypi JSON API endpoint is built as https://$PYPI_HOST/project//json choices: - test.pypi.org - pypi.org default: test.pypi.org - bool: name: FORCE_UPLOAD default: false description: | Force uploading python packages on the chosen PYPI registry, even if the package already exists. - bool: name: SKIP_TESTS default: false description: | Do not run tests on the repository. - bool: name: IGNORE_TESTS default: false description: | Proceed even if the tests are failing on the repository. dsl: !include-jinja2: swh-pypi.groovy.j2