Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 1 | --- |
| 2 | # publishing Python modules to PyPI |
| 3 | |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 4 | - job-template: |
| 5 | id: pypi-publish |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 6 | name: 'pypi-publish_{project}' |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 7 | description: | |
Zack Williams | 42200aa | 2019-04-12 13:27:44 -0700 | [diff] [blame] | 8 | Created by {id} job-template from ci-management/jjb/pypi-publish.yaml<br/> |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 9 | When a patch is merged, publish python modules to PyPI |
| 10 | |
| 11 | triggers: |
| 12 | - cord-infra-gerrit-trigger-merge: |
| 13 | gerrit-server-name: '{gerrit-server-name}' |
| 14 | project-regexp: '{project-regexp}' |
| 15 | branch-regexp: '{branch-regexp}' |
| 16 | file-include-regexp: '{all-files-regexp}' |
| 17 | dependency-jobs: '{dependency-jobs}' |
| 18 | |
| 19 | properties: |
| 20 | - cord-infra-properties: |
| 21 | build-days-to-keep: '{build-days-to-keep}' |
| 22 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 23 | |
| 24 | wrappers: |
| 25 | - cord-pypi-wrapper: |
| 26 | build-timeout: '{build-timeout}' |
| 27 | jenkins-ssh-credential: '{gerrit-ssh-credential}' |
| 28 | |
| 29 | scm: |
| 30 | - lf-infra-gerrit-scm: |
| 31 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 32 | refspec: '' |
| 33 | branch: '$GERRIT_BRANCH' |
| 34 | submodule-recursive: 'false' |
| 35 | choosing-strategy: 'gerrit' |
| 36 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 37 | |
| 38 | node: '{build-node}' |
| 39 | project-type: freestyle |
| 40 | concurrent: true |
| 41 | |
| 42 | builders: |
| 43 | - inject: |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 44 | properties-content: | |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 45 | PYPI_INDEX={pypi-index} |
| 46 | PYPI_MODULE_DIRS={pypi-module-dirs} |
Zack Williams | 96fecf0 | 2019-03-27 13:52:01 -0700 | [diff] [blame] | 47 | PYPI_PREP_COMMANDS={pypi-prep-commands} |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 48 | |
| 49 | - shell: !include-raw-escape: shell/pypi-publish.sh |
| 50 | |