blob: a4d89fe56acc9220f0edefe10fd8948eceb6c389 [file] [log] [blame]
Zack Williams5aa37e12019-02-13 13:28:29 -07001---
2# publishing Python modules to PyPI
3
Zack Williams5aa37e12019-02-13 13:28:29 -07004- job-template:
5 id: pypi-publish
Zack Williams5d8f2532019-02-14 12:20:51 -07006 name: 'pypi-publish_{project}'
Zack Williams5aa37e12019-02-13 13:28:29 -07007 description: |
Zack Williams42200aa2019-04-12 13:27:44 -07008 Created by {id} job-template from ci-management/jjb/pypi-publish.yaml<br/>
Zack Williams5aa37e12019-02-13 13:28:29 -07009 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 Williamsccc14742020-01-22 13:15:59 -070034 submodule-disable: '{submodule-disable}'
Zack Williams5aa37e12019-02-13 13:28:29 -070035 submodule-recursive: 'false'
Zack Williamsccc14742020-01-22 13:15:59 -070036 submodule-timeout: '{submodule-timeout}'
Zack Williams5aa37e12019-02-13 13:28:29 -070037 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 Williams5d8f2532019-02-14 12:20:51 -070046 properties-content: |
Zack Williams5aa37e12019-02-13 13:28:29 -070047 PYPI_INDEX={pypi-index}
48 PYPI_MODULE_DIRS={pypi-module-dirs}
Zack Williams96fecf02019-03-27 13:52:01 -070049 PYPI_PREP_COMMANDS={pypi-prep-commands}
Zack Williams5aa37e12019-02-13 13:28:29 -070050
51 - shell: !include-raw-escape: shell/pypi-publish.sh
52