blob: 7069934f5d977fdc39db87cbe3f15b5cc64d7c33 [file] [log] [blame]
---
# publishing Python modules to PyPI
- job-template:
id: pypi-publish
name: 'pypi-publish_{project}'
description: |
Created by {id} job-template from ci-management/jjb/pypi-publish.yaml<br/>
When a patch is merged, publish python modules to PyPI
triggers:
- cord-infra-gerrit-trigger-merge:
gerrit-server-name: '{gerrit-server-name}'
project-regexp: '{project-regexp}'
branch-regexp: '{branch-regexp}'
file-include-regexp: '{all-files-regexp}'
dependency-jobs: '{dependency-jobs}'
properties:
- cord-infra-properties:
build-days-to-keep: '{build-days-to-keep}'
artifact-num-to-keep: '{artifact-num-to-keep}'
wrappers:
- cord-pypi-wrapper:
build-timeout: '{build-timeout}'
jenkins-ssh-credential: '{gerrit-ssh-credential}'
scm:
- lf-infra-gerrit-scm:
git-url: '$GIT_URL/$GERRIT_PROJECT'
refspec: ''
branch: '$GERRIT_BRANCH'
submodule-disable: '{submodule-disable}'
submodule-recursive: 'false'
submodule-timeout: '{submodule-timeout}'
choosing-strategy: 'gerrit'
jenkins-ssh-credential: '{jenkins-ssh-credential}'
node: '{build-node}'
project-type: freestyle
concurrent: true
builders:
- inject:
properties-content: |
PYPI_INDEX={pypi-index}
PYPI_MODULE_DIRS={pypi-module-dirs}
PYPI_PREP_COMMANDS={pypi-prep-commands}
- shell: !include-raw-escape: shell/pypi-publish.sh
# [EOF]