blob: f51e4e064099bde479d040e9c71665d35821760f [file] [log] [blame]
Paul Sokolovskydedc4832022-01-17 23:26:30 +03001- job:
2 name: ci-dockerfiles-sanity-check
3 project-type: matrix
4 defaults: global
5 properties:
6 - authorization:
7 anonymous:
8 - job-discover
9 authenticated:
10 - job-read
11 - job-extended-read
12 - job-discover
13 - build-discarder:
14 days-to-keep: 90
15 num-to-keep: 200
16 - build-blocker:
17 use-build-blocker: true
18 blocking-jobs:
19 - "ci-docker*"
20 block-level: 'NODE'
21 disabled: false
Paul Sokolovsky4ac026b2022-11-11 12:43:25 +030022 node: build-amd64-private
Paul Sokolovskydedc4832022-01-17 23:26:30 +030023 concurrent: false
24 display-name: 'CI Dockerfiles sanity check'
Paul Sokolovskye5823d52022-01-18 23:30:19 +030025 parameters:
26 - string:
Paul Sokolovskybaf29fa2022-11-11 12:21:49 +030027 name: GERRIT_PROJECT
28 default: 'ci/dockerfiles'
29 description: |
30 Git project to build (also set by Gerrit trigger)
31 - string:
32 name: GERRIT_BRANCH
33 default: 'master'
34 description: |
35 Git branch to build (also set by Gerrit trigger)
36 - string:
37 name: GERRIT_REFSPEC
38 default: ''
39 - string:
Paul Sokolovskye5823d52022-01-18 23:30:19 +030040 name: DOCKER_SUFFIX
41 default: '-check'
42 description: |
43 Suffix for docker image name, should be non-empty to differentiate testing images from production images.
Paul Sokolovskydedc4832022-01-17 23:26:30 +030044 scm:
45 - git:
46 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
47 refspec: ${GERRIT_REFSPEC}
48 branches:
49 - ${GERRIT_BRANCH}
50 skip-tag: true
51 clean:
52 before: true
53 choosing-strategy: gerrit
54 basedir: dockerfiles
55 triggers:
56 - gerrit:
57 server-name: 'review.trustedfirmware.org'
58 trigger-on:
Paul Sokolovsky6ab98c02022-01-18 00:07:27 +030059 - comment-added-contains-event:
60 comment-contains-value: check-staging
Paul Sokolovskydedc4832022-01-17 23:26:30 +030061 projects:
62 - project-compare-type: 'PLAIN'
63 project-pattern: 'ci/dockerfiles'
64 branches:
65 - branch-compare-type: 'PLAIN'
66 branch-pattern: 'master'
Paul Sokolovsky6ab98c02022-01-18 00:07:27 +030067 silent-start: false
Paul Sokolovskydedc4832022-01-17 23:26:30 +030068 axes:
69 - axis:
70 type: slave
71 name: label
72 values:
73 - build-amd64
74 execution-strategy:
75 sequential: false
76 wrappers:
77 - timestamps
78 builders:
79 - shell: |
80 #!/bin/bash -e
81 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
82 - build-name-setter:
83 name: 'version.txt'
84 file: true
Paul Sokolovskydedc4832022-01-17 23:26:30 +030085 - shell:
86 !include-raw: ci-dockerfiles-deployment/builders.sh
87 - shell:
88 !include-raw: ci-dockerfiles-deployment/report.sh
89 publishers:
90 - email:
91 recipients: linaro-infrastructure-errors@lists.linaro.org