blob: 398a609cf6659bb60abbd462a6fc707e21a646b7 [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'
45 silent-start: true
46 wrappers:
47 - timestamps
48 builders:
49 - shell: |
50 #!/bin/bash -e
51 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
52 - build-name-setter:
53 name: 'version.txt'
54 file: true
55 - shell: |
56 #!/bin/bash
57
58 set -e
59
60 echo ""
61 echo "########################################################################"
62 echo " Gerrit Environment"
63 env |grep '^GERRIT'
64 echo "########################################################################"
65
66 cd configs/
67
Benjamin Copeland7765f222019-04-02 11:54:08 +010068 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 +010069 # FIXME run-jjb.py was meant to be used for deployment only
70 # use JJB 'test' command instead of 'update' command
Benjamin Copeland73775882019-04-02 10:27:34 +010071 sed -i "s|update|test|" ci/run-jjb.py
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010072
73 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
74 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
75 jenkins-jobs --version
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010076 python ci/run-jjb.py
77 publishers:
78 - email:
Fathi Boudrab9abd882019-12-04 15:36:38 +020079 recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org'