blob: 4fda970d690f38e289e377d205520a67acfe065e [file] [log] [blame]
Paul Sokolovskyeec2cbb2022-11-11 19:36:55 +03001- job:
2 name: ci-dockerfiles-sanity-check
Paul Sokolovskyb5b71832022-11-11 19:51:41 +03003 project-type: freestyle
Paul Sokolovskyeec2cbb2022-11-11 19:36:55 +03004 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
22 node: build-amd64-private
23 concurrent: false
24 display-name: 'CI Dockerfiles sanity check'
25 parameters:
26 - string:
27 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:
40 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.
44 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:
59 - comment-added-contains-event:
60 comment-contains-value: check-staging
61 projects:
62 - project-compare-type: 'PLAIN'
63 project-pattern: 'ci/dockerfiles'
64 branches:
65 - branch-compare-type: 'PLAIN'
66 branch-pattern: 'master'
67 silent-start: false
68 execution-strategy:
69 sequential: false
70 wrappers:
71 - timestamps
72 builders:
73 - shell: |
74 #!/bin/bash -e
Paul Sokolovskyba22fe32022-11-11 20:09:55 +030075 if [ -n "${GERRIT_PATCHSET_REVISION}" ]; then
76 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
77 else
78 echo "#${BUILD_NUMBER}" > ${WORKSPACE}/version.txt
79 fi
Paul Sokolovskyeec2cbb2022-11-11 19:36:55 +030080 - build-name-setter:
81 name: 'version.txt'
82 file: true
83 - shell:
84 !include-raw: ci-dockerfiles-deployment/builders.sh
85 - shell:
86 !include-raw: ci-dockerfiles-deployment/report.sh
87 publishers:
88 - email:
89 recipients: linaro-infrastructure-errors@lists.linaro.org