blob: fa1a0d545a218fbf8a3466a89e9d17a09b65b033 [file] [log] [blame]
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +01001- job:
2 name: ci-job-configs-sanity-check
3 project-type: freestyle
4 defaults: global
5 properties:
6 - authorization:
Riku Voipiod87aec72021-10-18 15:49:37 +03007 authenticated:
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +01008 - job-read
9 - job-extended-read
Riku Voipiod87aec72021-10-18 15:49:37 +030010 - job-discover
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010011 - build-discarder:
12 days-to-keep: 30
13 num-to-keep: 30
14 disabled: false
15 node: master
16 display-name: 'CI job configs sanity check'
17 scm:
18 - git:
19 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
20 refspec: ${GERRIT_REFSPEC}
21 branches:
22 - ${GERRIT_BRANCH}
23 skip-tag: true
24 clean:
25 before: true
26 choosing-strategy: gerrit
27 basedir: configs
28 triggers:
29 - gerrit:
30 server-name: 'review.trustedfirmware.org'
31 trigger-on:
32 - patchset-created-event
33 projects:
34 - project-compare-type: 'PLAIN'
Benjamin Copeland73775882019-04-02 10:27:34 +010035 project-pattern: 'ci/tf-ci-scripts'
36 branches:
37 - branch-pattern: 'master'
38 - project-compare-type: 'PLAIN'
39 project-pattern: 'ci/tf-m-job-configs'
40 branches:
41 - branch-pattern: 'master'
42 - project-compare-type: 'PLAIN'
43 project-pattern: 'ci/tf-a-job-configs'
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010044 branches:
45 - branch-pattern: 'master'
Benjamin Copeland771fcaf2020-05-05 11:19:34 +010046 - project-compare-type: 'PLAIN'
Benjamin Copelandee421cf2020-05-05 11:13:30 +010047 project-pattern: 'ci/hafnium-job-configs'
48 branches:
49 - branch-pattern: 'master'
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010050 silent-start: true
51 wrappers:
52 - timestamps
53 builders:
54 - shell: |
55 #!/bin/bash -e
56 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
57 - build-name-setter:
58 name: 'version.txt'
59 file: true
60 - shell: |
61 #!/bin/bash
62
63 set -e
64
65 echo ""
66 echo "########################################################################"
67 echo " Gerrit Environment"
68 env |grep '^GERRIT'
69 echo "########################################################################"
70
71 cd configs/
72
Benjamin Copeland7765f222019-04-02 11:54:08 +010073 mkdir -p ci/ && wget -q https://git.trustedfirmware.org/ci/tf-ci-scripts.git/plain/ci/run-jjb.py -O ci/run-jjb.py
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010074 # FIXME run-jjb.py was meant to be used for deployment only
75 # use JJB 'test' command instead of 'update' command
Benjamin Copeland73775882019-04-02 10:27:34 +010076 sed -i "s|update|test|" ci/run-jjb.py
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010077
78 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
79 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
80 jenkins-jobs --version
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010081 python ci/run-jjb.py
82 publishers:
83 - email:
Fathi Boudrab9abd882019-12-04 15:36:38 +020084 recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org'