blob: 80ae84bb775f0eeebed727cbd2567d8329faf624 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2- job-template:
3 # Job template for python verify jobs
4 #
Jessica Wagantalla0b80c62017-12-21 12:10:19 -08005 # The purpose of this job template is to run:
6 # 1. tox
7 #
8 # This job supports subprojects.
Andrew Grimbergebc710a2017-01-30 12:59:38 -08009 #
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
Andrew Grimbergce2286c2017-01-31 05:50:39 -080018 name: '{project-name}-{stream}-{subproject}-verify-python'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080019 path: '$WORKSPACE'
20
21 project-type: freestyle
22 concurrent: true
23 node: '{build-node}'
24
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080025 properties:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070026 - infra-properties:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080027 build-days-to-keep: '{build-days-to-keep}'
28
Andrew Grimbergebc710a2017-01-30 12:59:38 -080029 parameters:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070030 - infra-parameters:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080031 project: '{project}'
32 branch: '{branch}'
33 refspec: 'refs/heads/{branch}'
Andrew Grimberg597853d2017-01-31 05:28:25 -080034 artifacts: '{archive-artifacts}'
Andrew Grimbergdcdce332017-02-24 11:27:09 -080035 - maven-exec:
Andrew Grimberge2465882017-02-24 12:38:05 -080036 maven-version: '{maven-version}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080037
38 scm:
39 - gerrit-trigger-scm:
40 refspec: '$GERRIT_REFSPEC'
41 choosing-strategy: 'gerrit'
Jeremy Phelps11f5d412017-06-30 13:56:19 -050042 submodule-recursive: '{submodule-recursive}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080043
44 wrappers:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070045 - infra-wrappers:
Andrew Grimbergebc710a2017-01-30 12:59:38 -080046 build-timeout: '{build-timeout}'
47
48 triggers:
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080049 - gerrit-trigger-patch-submitted:
50 server: '{server-name}'
51 project: '{project}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080052 branch: '{branch}'
Andrew Grimberg94ef33d2017-01-31 05:16:56 -080053 files: '{pattern}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080054
55 builders:
Andrew Grimbergd5410d12017-02-10 10:44:11 -080056 - provide-maven-settings:
57 global-settings-file: 'global-settings'
58 settings-file: '{mvn-settings}'
Andrew Grimbergebc710a2017-01-30 12:59:38 -080059 - shell: |
Andrew Grimberg673c9632017-02-16 06:21:00 -080060 #!/bin/bash
Andrew Grimbergebc710a2017-01-30 12:59:38 -080061 virtualenv $WORKSPACE/venv-tox
62 source $WORKSPACE/venv-tox/bin/activate
63 pip install --upgrade pip
64 pip install --upgrade tox argparse
65 pip freeze
66 cd $WORKSPACE/{path}
67 tox
68
Andrew Grimberg4ecb8f22017-04-06 13:57:46 -070069 publishers:
70 - infra-shiplogs:
71 maven-version: '{maven-version}'
DR695Hf68e9192017-02-20 17:06:47 -050072
Jerry Floodffab4f72017-05-02 16:00:03 -040073
74- job-template:
Jessica Wagantalla0b80c62017-12-21 12:10:19 -080075 # Job template for docker daily jobs for 3 SCMs
76 #
77 # The purpose of this job template is to run:
78 # 1. inject a version properties file
79 # 2. login into the docker registry
80 # 4. run a specified shell script
81 #
82 # Required Variables:
83 # branch: git branch (eg. stable/lithium or master)
84
Jerry Floodffab4f72017-05-02 16:00:03 -040085 name: '{project-name}-{stream}-3scm-docker-shell-daily'
86 project-type: freestyle
gwud0b160d2018-07-17 09:46:52 -070087 node: 'queue-docker-4c-4g'
Jerry Floodffab4f72017-05-02 16:00:03 -040088
89 properties:
90 - infra-properties:
91 build-days-to-keep: '{build-days-to-keep}'
92
93 parameters:
94 - infra-parameters:
95 project: '{project}'
96 branch: '{branch}'
97 refspec: 'refs/heads/{branch}'
98 artifacts: '{archive-artifacts}'
99 - maven-exec:
100 maven-version: '{maven-version}'
101
102 scm:
103 - gerrit-trigger-scm:
104 refspec: ''
105 choosing-strategy: 'default'
Jeremy Phelps11f5d412017-06-30 13:56:19 -0500106 submodule-recursive: '{submodule-recursive}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400107 - git-extra-project:
108 project: '{extra-project1}'
109 refspec: '{extra-refspec1}'
110 branch: '{extra-branch1}'
111 checkout-dir: '{checkout-dir1}'
112 - git-extra-project:
113 project: '{extra-project2}'
114 refspec: '{extra-refspec2}'
115 branch: '{extra-branch2}'
116 checkout-dir: '{checkout-dir2}'
117 - git-extra-project:
118 project: '{extra-project3}'
119 refspec: '{extra-refspec3}'
120 branch: '{extra-branch3}'
121 checkout-dir: '{checkout-dir3}'
122
123 wrappers:
gwuadeda5a2018-07-17 14:12:09 -0700124 - infra-wrappers-docker-build:
125 build-timeout: '{build-timeout}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400126
127 triggers:
Gary Wu6b702fe2018-07-18 10:32:17 -0700128 - timed: 'H */4 * * *'
Jerry Floodffab4f72017-05-02 16:00:03 -0400129 - gerrit-trigger-release-manually:
130 server: '{server-name}'
131 project: '{project}'
132 branch: '{branch}'
Gary Wu601a2ff2018-07-30 17:50:12 -0700133 - gerrit-trigger-patch-merged:
134 server: '{server-name}'
135 project: '{project}'
136 branch: '{branch}'
137 files: '**'
Jerry Floodffab4f72017-05-02 16:00:03 -0400138
139 builders:
Jerry Floodffab4f72017-05-02 16:00:03 -0400140 - provide-maven-settings:
141 global-settings-file: 'global-settings'
142 settings-file: '{mvn-settings}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400143 - inject:
144 properties-file: version.properties
Jerry Floodffab4f72017-05-02 16:00:03 -0400145 - docker-login
Jerry Floodffab4f72017-05-02 16:00:03 -0400146 - shell: '{script}'
Jerry Floodffab4f72017-05-02 16:00:03 -0400147 publishers:
148 - infra-shiplogs:
149 maven-version: '{maven-version}'