blob: b3fed47ba1e28f907255f7aea8fbb1733a8b2b3b [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'
Leonardo Sandoval55ddc242021-12-16 12:40:07 -060050 - project-compare-type: 'PLAIN'
51 project-pattern: 'ci/mbed-tls-job-configs'
52 branches:
53 - branch-pattern: 'master'
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010054 silent-start: true
55 wrappers:
56 - timestamps
57 builders:
58 - shell: |
59 #!/bin/bash -e
60 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
61 - build-name-setter:
62 name: 'version.txt'
63 file: true
64 - shell: |
65 #!/bin/bash
66
67 set -e
68
69 echo ""
70 echo "########################################################################"
71 echo " Gerrit Environment"
72 env |grep '^GERRIT'
73 echo "########################################################################"
74
75 cd configs/
76
Benjamin Copeland7765f222019-04-02 11:54:08 +010077 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 +010078 # FIXME run-jjb.py was meant to be used for deployment only
79 # use JJB 'test' command instead of 'update' command
Benjamin Copeland73775882019-04-02 10:27:34 +010080 sed -i "s|update|test|" ci/run-jjb.py
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010081
82 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
83 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
84 jenkins-jobs --version
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010085 python ci/run-jjb.py
86 publishers:
87 - email:
Fathi Boudrab9abd882019-12-04 15:36:38 +020088 recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org'