blob: 44f3786bfc1cd78968c36b45e6dd881e57019def [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
20 node: build-amd64
21 concurrent: false
22 display-name: 'CI Dockerfiles build/publish deployment'
23 scm:
24 - git:
25 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
26 refspec: ${GERRIT_REFSPEC}
27 branches:
28 - ${GERRIT_BRANCH}
29 skip-tag: true
30 clean:
31 before: true
32 choosing-strategy: gerrit
33 basedir: dockerfiles
34 triggers:
35 - gerrit:
36 server-name: 'review.trustedfirmware.org'
37 trigger-on:
38 - change-merged-event
39 projects:
40 - project-compare-type: 'PLAIN'
41 project-pattern: 'ci/dockerfiles'
42 branches:
43 - branch-compare-type: 'PLAIN'
44 branch-pattern: 'master'
45 silent-start: true
46 execution-strategy:
47 sequential: false
48 wrappers:
49 - timestamps
50 - credentials-binding:
51 - text:
52 credential-id: DOCKER_AUTH
53 variable: DOCKER_AUTH
54 builders:
55 - shell: |
56 #!/bin/bash -e
57 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
58 - build-name-setter:
59 name: 'version.txt'
60 file: true
61 - shell:
62 !include-raw: ci-dockerfiles-deployment/builders.sh
63 - shell:
64 !include-raw: ci-dockerfiles-deployment/publish.sh
65 publishers:
66 - trigger:
67 project: 'ci-dockerslaves-cleanup'
68 - email:
69 recipients: 'linaro-infrastructure-errors@lists.linaro.org paul.sokolovsky@linaro.org'