6 name: ta-parameters-manifest
9 default: refs/heads/master
11 name: SCM_REFSPEC_MANIFEST
15 name: ta-parameters-build-tools
18 default: refs/heads/master
20 name: SCM_REFSPEC_BUILD_TOOLS
24 name: ta-parameters-rpmbuilder
27 default: refs/heads/master
29 name: SCM_REFSPEC_RPMBUILDER
33 name: ta-parameters-ci
35 - ta-parameters-manifest
36 - ta-parameters-build-tools
37 - ta-parameters-rpmbuilder
40 name: ta-parameters-ci-ta-rpmbuilder
42 - ta-parameters-manifest
43 - ta-parameters-build-tools
47 name: SCM_PROJECT_TO_BUILD
50 default: refs/heads/master
52 name: SCM_PROJECT_TO_BUILD_REFSPEC
59 # Enhanced version of the global-jjb
60 name: ta-lf-infra-gerrit-scm
63 credentials-id: '{jenkins-ssh-credential}'
67 - 'refs/heads/{branch}'
71 recursive: '{submodule-recursive}'
72 timeout: '{submodule-timeout}'
73 choosing-strategy: '{choosing-strategy}'
85 source /tmp/v/tox/bin/activate
86 for f in $(find $GERRIT_PROJECT -name tox.ini); do
96 sudo yum install -y createrepo
97 ta/build-tools/build_rpms.sh \
108 git clone {git-url}/{project} {project}
110 if echo {ref} | grep -q "refs/"; then
111 git fetch origin {ref}
112 git checkout FETCH_HEAD
119 name: ta-lf-infra-ship-rpms
121 # Ensure no pre-existing .netrc files are overriding logs config
122 - lf-provide-maven-settings-cleanup
123 - config-file-provider:
125 - file-id: 'images-snapshots-settings'
126 variable: 'SETTINGS_FILE'
127 - lf-infra-create-netrc:
128 server-id: images-snapshots
129 - shell: !include-raw:
130 # Ensure python-tools are installed in case job template does not
131 # call the lf-infra-pre-build macro.
132 - ../../global-jjb/shell/python-tools-install.sh
133 - ../shell/ta-rpm-deploy.sh
134 - shell: !include-raw:
135 - ../../global-jjb/shell/logs-clear-credentials.sh
138 name: ta-lf-infra-ship-isos
140 # Ensure no pre-existing .netrc files are overriding logs config
141 - lf-provide-maven-settings-cleanup
142 - config-file-provider:
144 - file-id: 'images-snapshots-settings'
145 variable: 'SETTINGS_FILE'
146 - lf-infra-create-netrc:
147 server-id: images-snapshots
148 - shell: !include-raw:
149 # Ensure python-tools are installed in case job template does not
150 # call the lf-infra-pre-build macro.
151 - ../../global-jjb/shell/python-tools-install.sh
152 - ../shell/ta-iso-deploy.sh
153 - shell: !include-raw:
154 - ../../global-jjb/shell/logs-clear-credentials.sh
157 name: ta-builder-job-verify
161 project: 'ta/manifest'
162 ref: '$SCM_REFSPEC_MANIFEST'
165 project: 'ta/build-tools'
166 ref: '$SCM_REFSPEC_BUILD_TOOLS'
169 project: 'ta/rpmbuilder'
170 ref: '$SCM_REFSPEC_RPMBUILDER'
173 project-to-build: '$GERRIT_PROJECT'
176 name: ta-builder-job-verify-ta-rpmbuilder
180 project: 'ta/manifest'
181 ref: '$SCM_REFSPEC_MANIFEST'
184 project: 'ta/build-tools'
185 ref: '$SCM_REFSPEC_BUILD_TOOLS'
188 project: '$SCM_PROJECT_TO_BUILD'
189 ref: '$SCM_PROJECT_TO_BUILD_REFSPEC'
192 # Just package some random project to verify "rpmbuilder" changes
193 project-to-build: '$SCM_PROJECT_TO_BUILD'
196 name: ta-builder-job-merge
200 project: 'ta/manifest'
201 ref: '$SCM_REFSPEC_MANIFEST'
204 project: 'ta/build-tools'
205 ref: '$SCM_REFSPEC_BUILD_TOOLS'
208 project: 'ta/rpmbuilder'
209 ref: '$SCM_REFSPEC_RPMBUILDER'
211 project-to-build: '$GERRIT_PROJECT'
212 - ta-lf-infra-ship-rpms
215 name: ta-builder-install-docker
218 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
219 sudo yum -y install docker-ce docker-ce-cli containerd.io
220 sudo systemctl start docker
221 # Ugly hack to make docker usable for non-root
222 # (adding to the group would require re-login)
223 sudo chmod 777 /var/run/docker.sock
230 name: ta-trigger-job-verify
233 server-name: '{gerrit-server-name}'
235 - patchset-created-event:
236 exclude-drafts: 'false'
237 exclude-trivial-rebase: 'false'
238 exclude-no-code-change: 'false'
239 - draft-published-event
240 - comment-added-contains-event:
241 comment-contains-value: 'recheck'
242 - comment-added-contains-event:
243 comment-contains-value: 'reverify'
245 - project-compare-type: 'ANT'
246 project-pattern: '{project}'
248 - branch-compare-type: 'ANT'
249 branch-pattern: '**/{branch}'
250 readable-message: true
253 name: ta-trigger-job-merge
256 server-name: '{gerrit-server-name}'
258 # Not sure if it would be better to use "change-merged" here and just clone the master
259 # branch. With the current approach the SCM can be identical in verify and merge jobs.
262 - project-compare-type: 'ANT'
263 project-pattern: '{project}'
265 - branch-compare-type: 'ANT'
266 branch-pattern: '**/{branch}'
267 readable-message: true
274 name: ta-publisher-job-verify
279 name: ta-publisher-job-merge