blob: 2b0945a78a054660c8ef453c65be79dd0a1f0ca8 [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'
Paul Sokolovsky0269cf52022-11-12 12:05:48 +030059 execution-strategy:
60 sequential: false
61 wrappers:
62 - timestamps
63 - credentials-binding:
64 - text:
65 credential-id: DOCKER_AUTH
66 variable: DOCKER_AUTH
67 builders:
Paul Sokolovsky3c3a6e72023-01-23 17:42:34 +070068 - shell: |
69 df -h
Paul Sokolovskyef0682b2022-11-12 12:19:33 +030070 - shell:
71 !include-raw: ci-dockerfiles-deployment/build-version.sh
Paul Sokolovsky0269cf52022-11-12 12:05:48 +030072 - build-name-setter:
73 name: 'version.txt'
74 file: true
75 - shell:
76 !include-raw: ci-dockerfiles-deployment/builders.sh
77 - shell:
78 !include-raw: ci-dockerfiles-deployment/publish.sh
79 publishers:
80 - trigger:
81 project: 'ci-dockerslaves-cleanup'
82 - email:
83 recipients: 'linaro-infrastructure-errors@lists.linaro.org paul.sokolovsky@linaro.org'
Paul Sokolovsky3c3a6e72023-01-23 17:42:34 +070084 - workspace-cleanup