blob: d3eca1f3714d24d031ea00b7fe30825b1290df93 [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:
50 server-name: 'review.trustedfirmware.org'
51 trigger-on:
52 - change-merged-event
53 projects:
54 - project-compare-type: 'PLAIN'
55 project-pattern: 'ci/dockerfiles'
56 branches:
57 - branch-compare-type: 'PLAIN'
58 branch-pattern: 'master'
59 silent-start: true
60 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 Sokolovskyef0682b2022-11-12 12:19:33 +030069 - shell:
70 !include-raw: ci-dockerfiles-deployment/build-version.sh
Paul Sokolovsky0269cf52022-11-12 12:05:48 +030071 - build-name-setter:
72 name: 'version.txt'
73 file: true
74 - shell:
75 !include-raw: ci-dockerfiles-deployment/builders.sh
76 - shell:
77 !include-raw: ci-dockerfiles-deployment/publish.sh
78 publishers:
79 - trigger:
80 project: 'ci-dockerslaves-cleanup'
81 - email:
82 recipients: 'linaro-infrastructure-errors@lists.linaro.org paul.sokolovsky@linaro.org'