diff --git a/jobs/templates/swh-pypi.groovy.j2 b/jobs/templates/swh-pypi.groovy.j2 --- a/jobs/templates/swh-pypi.groovy.j2 +++ b/jobs/templates/swh-pypi.groovy.j2 @@ -11,6 +11,17 @@ break } +def BDIST_WHEEL + +switch (params.BDIST_WHEEL) { + case 'skip': + BDIST_WHEEL = '' + break + default: + BDIST_WHEEL = 'bdist_wheel' + break +} + pipeline { {% filter indent(width=2) %} {%- include 'includes/agent-docker.groovy.j2' -%} @@ -64,7 +75,7 @@ done fi - python3 setup.py sdist bdist_wheel + python3 setup.py sdist ${BDIST_WHEEL} ''' archiveArtifacts allowEmptyArchive: true, artifacts: 'dist/*',