Fix: Remove portal stage job
[ci-management.git] / jjb / global-templates-python.yaml
1 ---
2 - job-template:
3     # Job template for python verify jobs
4     #
5     # The purpose of this job template is to run:
6     # 1. tox
7     #
8     # This job supports subprojects.
9     #
10     # Required Variables:
11     #     branch:    git branch (eg. stable/lithium or master)
12     # Optional Variables:
13     #     path:      directory containing the project's tox.ini relative to
14     #                the workspace. The default is the project root.
15     #     pattern:   ant file-path pattern relative to the workspace used to
16     #                trigger the job
17
18     name: '{project-name}-{stream}-{subproject}-verify-python'
19     path: '$WORKSPACE'
20
21     project-type: freestyle
22     concurrent: true
23     node: '{build-node}'
24
25     properties:
26       - infra-properties:
27           build-days-to-keep: '{build-days-to-keep}'
28
29     parameters:
30       - infra-parameters:
31           project: '{project}'
32           branch: '{branch}'
33           refspec: 'refs/heads/{branch}'
34           artifacts: '{archive-artifacts}'
35       - maven-exec:
36           maven-version: '{maven-version}'
37
38     scm:
39       - gerrit-trigger-scm:
40           refspec: '$GERRIT_REFSPEC'
41           choosing-strategy: 'gerrit'
42           submodule-recursive: '{submodule-recursive}'
43
44     wrappers:
45       - infra-wrappers:
46           build-timeout: '{build-timeout}'
47
48     triggers:
49       - gerrit-trigger-patch-submitted:
50           server: '{server-name}'
51           project: '{project}'
52           branch: '{branch}'
53           files: '{pattern}'
54
55     builders:
56       - lf-infra-pre-build
57       - provide-maven-settings:
58           global-settings-file: 'global-settings'
59           settings-file: '{mvn-settings}'
60       - shell: |
61           #!/bin/bash
62           virtualenv $WORKSPACE/venv-tox
63           source $WORKSPACE/venv-tox/bin/activate
64           pip install --upgrade pip
65           pip install --upgrade tox argparse
66           pip freeze
67           cd $WORKSPACE/{path}
68           tox
69
70     publishers:
71       - lf-infra-publish
72
73 - job-template:
74     # Job template for docker daily jobs for 3 SCMs
75     #
76     # The purpose of this job template is to run:
77     # 1. inject a version properties file
78     # 2. login into the docker registry
79     # 4. run a specified shell script
80     #
81     # Required Variables:
82     #     branch:    git branch (eg. stable/lithium or master)
83
84     name: '{project-name}-{stream}-3scm-docker-shell-daily'
85     project-type: freestyle
86     node: 'queue-docker-4c-4g'
87
88     properties:
89       - infra-properties:
90           build-days-to-keep: '{build-days-to-keep}'
91
92     parameters:
93       - infra-parameters:
94           project: '{project}'
95           branch: '{branch}'
96           refspec: 'refs/heads/{branch}'
97           artifacts: '{archive-artifacts}'
98       - maven-exec:
99           maven-version: '{maven-version}'
100     scm:
101       - gerrit-trigger-scm:
102           refspec: ''
103           choosing-strategy: 'default'
104           submodule-recursive: '{submodule-recursive}'
105
106     wrappers:
107       - infra-wrappers-docker-build:
108           build-timeout: '{build-timeout}'
109
110     triggers:
111       - timed: 'H */4 * * *'
112       - gerrit-trigger-release-manually:
113           server: '{server-name}'
114           project: '{project}'
115           branch: '{branch}'
116       - gerrit-trigger-patch-merged:
117           server: '{server-name}'
118           project: '{project}'
119           branch: '{branch}'
120           files: '**'
121
122     builders:
123       - lf-infra-pre-build
124       - provide-maven-settings:
125           global-settings-file: 'global-settings'
126           settings-file: '{mvn-settings}'
127       - inject:
128           properties-file: version.properties
129       - docker-login
130       - shell: '{script}'
131
132     publishers:
133       - lf-infra-publish