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' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 34 | submodule-disable: '{submodule-disable}' |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 35 | submodule-recursive: 'false' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 36 | submodule-timeout: '{submodule-timeout}' |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 37 | choosing-strategy: 'gerrit' |
| 38 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 39 | |
| 40 | node: '{build-node}' |
| 41 | project-type: freestyle |
| 42 | concurrent: true |
| 43 | |
| 44 | builders: |
| 45 | - inject: |
Zack Williams | 5d8f253 | 2019-02-14 12:20:51 -0700 | [diff] [blame] | 46 | properties-content: | |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 47 | PYPI_INDEX={pypi-index} |
| 48 | PYPI_MODULE_DIRS={pypi-module-dirs} |
Zack Williams | 96fecf0 | 2019-03-27 13:52:01 -0700 | [diff] [blame] | 49 | PYPI_PREP_COMMANDS={pypi-prep-commands} |
Zack Williams | 5aa37e1 | 2019-02-13 13:28:29 -0700 | [diff] [blame] | 50 | |
| 51 | - shell: !include-raw-escape: shell/pypi-publish.sh |
| 52 | |