blob: b7445dcb3a2dc76b7178b21dbc6430f93e0b4267 [file] [log] [blame]
Paul Sokolovsky0269cf52022-11-12 12:05:48 +03001- job:
2 name: ci-dockerfiles-deployment
3 project-type: freestyle
4 defaults: global
5 properties:
6 - authorization:
7 authenticated:
8 - job-read
9 - job-extended-read
10 - job-discover
11 - build-discarder:
12 days-to-keep: 90
13 num-to-keep: 200
14 - build-blocker:
15 use-build-blocker: true
16 blocking-jobs:
17 - "ci-docker*"
18 block-level: 'NODE'
19 disabled: false
Paul Sokolovsky397ab332022-11-12 13:13:00 +030020 node: build-amd64-private
Paul Sokolovsky0269cf52022-11-12 12:05:48 +030021 concurrent: false
22 display-name: 'CI Dockerfiles build/publish deployment'
Paul Sokolovsky08160542022-11-12 12:14:00 +030023 parameters:
24 - string:
25 name: GERRIT_PROJECT
26 default: 'ci/dockerfiles'
27 description: |
28 Git project to build (also set by Gerrit trigger)
29 - string:
30 name: GERRIT_BRANCH
31 default: 'master'
32 description: |
33 Git branch to build (also set by Gerrit trigger)
34 - string:
35 name: GERRIT_REFSPEC
36 default: ''
Paul Sokolovsky0269cf52022-11-12 12:05:48 +030037 scm:
38 - git:
39 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
40 refspec: ${GERRIT_REFSPEC}
41 branches:
42 - ${GERRIT_BRANCH}
43 skip-tag: true
44 clean:
45 before: true
46 choosing-strategy: gerrit
47 basedir: dockerfiles
48 triggers:
49 - gerrit:
Saheer Babucaf89d52024-11-05 14:16:24 +000050 silent: true
Paul Sokolovsky0269cf52022-11-12 12:05:48 +030051 server-name: 'review.trustedfirmware.org'
52 trigger-on:
53 - change-merged-event
54 projects:
55 - project-compare-type: 'PLAIN'
56 project-pattern: 'ci/dockerfiles'
57 branches:
58 - branch-compare-type: 'PLAIN'
59 branch-pattern: 'master'
Paul Sokolovsky0269cf52022-11-12 12:05:48 +030060 execution-strategy:
61 sequential: false
62 wrappers:
63 - timestamps
64 - credentials-binding:
65 - text:
66 credential-id: DOCKER_AUTH
67 variable: DOCKER_AUTH
68 builders:
Paul Sokolovsky3c3a6e72023-01-23 17:42:34 +070069 - shell: |
70 df -h
Paul Sokolovskyef0682b2022-11-12 12:19:33 +030071 - shell:
72 !include-raw: ci-dockerfiles-deployment/build-version.sh
Paul Sokolovsky0269cf52022-11-12 12:05:48 +030073 - build-name-setter:
74 name: 'version.txt'
75 file: true
76 - shell:
77 !include-raw: ci-dockerfiles-deployment/builders.sh
78 - shell:
79 !include-raw: ci-dockerfiles-deployment/publish.sh
Saheer Babu08f49c52025-01-15 11:27:46 +000080 # publishers:
81 # - trigger:
82 # project: 'ci-dockerslaves-cleanup'
83 # - email:
84 # recipients: 'linaro-infrastructure-errors@lists.linaro.org paul.sokolovsky@linaro.org'
85 # - workspace-cleanup