blob: 9d487beaa7ebc7c3137d4ed7476aede1ff1d6f13 [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:
7 anonymous:
8 - job-read
9 - job-extended-read
10 - build-discarder:
11 days-to-keep: 30
12 num-to-keep: 30
13 disabled: false
14 node: master
15 display-name: 'CI job configs sanity check'
16 scm:
17 - git:
18 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
19 refspec: ${GERRIT_REFSPEC}
20 branches:
21 - ${GERRIT_BRANCH}
22 skip-tag: true
23 clean:
24 before: true
25 choosing-strategy: gerrit
26 basedir: configs
27 triggers:
28 - gerrit:
29 server-name: 'review.trustedfirmware.org'
30 trigger-on:
31 - patchset-created-event
32 projects:
33 - project-compare-type: 'PLAIN'
Benjamin Copeland73775882019-04-02 10:27:34 +010034 project-pattern: 'ci/tf-ci-scripts'
35 branches:
36 - branch-pattern: 'master'
37 - project-compare-type: 'PLAIN'
38 project-pattern: 'ci/tf-m-job-configs'
39 branches:
40 - branch-pattern: 'master'
41 - project-compare-type: 'PLAIN'
42 project-pattern: 'ci/tf-a-job-configs'
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010043 branches:
44 - branch-pattern: 'master'
Benjamin Copeland771fcaf2020-05-05 11:19:34 +010045 - project-compare-type: 'PLAIN'
Benjamin Copelandee421cf2020-05-05 11:13:30 +010046 project-pattern: 'ci/hafnium-job-configs'
47 branches:
48 - branch-pattern: 'master'
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010049 silent-start: true
50 wrappers:
51 - timestamps
52 builders:
53 - shell: |
54 #!/bin/bash -e
55 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
56 - build-name-setter:
57 name: 'version.txt'
58 file: true
59 - shell: |
60 #!/bin/bash
61
62 set -e
63
64 echo ""
65 echo "########################################################################"
66 echo " Gerrit Environment"
67 env |grep '^GERRIT'
68 echo "########################################################################"
69
70 cd configs/
71
Benjamin Copeland7765f222019-04-02 11:54:08 +010072 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 +010073 # FIXME run-jjb.py was meant to be used for deployment only
74 # use JJB 'test' command instead of 'update' command
Benjamin Copeland73775882019-04-02 10:27:34 +010075 sed -i "s|update|test|" ci/run-jjb.py
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010076
77 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
78 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
79 jenkins-jobs --version
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010080 python ci/run-jjb.py
81 publishers:
82 - email:
Fathi Boudrab9abd882019-12-04 15:36:38 +020083 recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org'