blob: 0f6aca98ddfadd3e3bca257bda7939be8bd566b2 [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: |
8 Created by {id} job-template from ci-management/jjb/pypi-publish.yaml
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 Williams5d8f2532019-02-14 12:20:51 -070044 properties-content: |
Zack Williams5aa37e12019-02-13 13:28:29 -070045 PYPI_INDEX={pypi-index}
46 PYPI_MODULE_DIRS={pypi-module-dirs}
Zack Williams96fecf02019-03-27 13:52:01 -070047 PYPI_PREP_COMMANDS={pypi-prep-commands}
Zack Williams5aa37e12019-02-13 13:28:29 -070048
49 - shell: !include-raw-escape: shell/pypi-publish.sh
50
51
52