blob: ba60fa2d2e5775e56e193228e5e06d72f59ab89b [file] [log] [blame]
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +01001- job:
Saheer Babu2aa76582025-08-14 08:54:14 +01002 name: ci-job-configs-sanity-check-next
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +01003 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
Saheer Babubf234442025-01-20 18:38:50 +000015 node: jjb
Saheer Babu2aa76582025-08-14 08:54:14 +010016 display-name: 'CI job configs sanity check(Next)'
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010017 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'
Saheer Babuaf027862025-08-14 09:39:01 +010035 project-pattern: 'next/ci/tf-ci-scripts'
Benjamin Copeland73775882019-04-02 10:27:34 +010036 branches:
37 - branch-pattern: 'master'
38 - project-compare-type: 'PLAIN'
Saheer Babuaf027862025-08-14 09:39:01 +010039 project-pattern: 'next/ci/tf-m-job-configs'
Benjamin Copeland73775882019-04-02 10:27:34 +010040 branches:
41 - branch-pattern: 'master'
42 - project-compare-type: 'PLAIN'
Saheer Babuaf027862025-08-14 09:39:01 +010043 project-pattern: 'next/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'
Saheer Babuaf027862025-08-14 09:39:01 +010047 project-pattern: 'next/ci/hafnium-job-configs'
Benjamin Copelandee421cf2020-05-05 11:13:30 +010048 branches:
49 - branch-pattern: 'master'
Leonardo Sandoval55ddc242021-12-16 12:40:07 -060050 - project-compare-type: 'PLAIN'
Saheer Babuaf027862025-08-14 09:39:01 +010051 project-pattern: 'next/ci/mbed-tls-job-configs'
Leonardo Sandoval55ddc242021-12-16 12:40:07 -060052 branches:
53 - branch-pattern: 'master'
Saheer Babu8733e092025-08-14 08:43:48 +010054 - project-compare-type: 'PLAIN'
55 project-pattern: 'next/ci/rmm-job-configs'
56 branches:
57 - branch-pattern: 'internal'
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010058 silent-start: true
59 wrappers:
60 - timestamps
61 builders:
62 - shell: |
63 #!/bin/bash -e
64 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
65 - build-name-setter:
66 name: 'version.txt'
67 file: true
68 - shell: |
69 #!/bin/bash
70
71 set -e
72
73 echo ""
74 echo "########################################################################"
75 echo " Gerrit Environment"
76 env |grep '^GERRIT'
77 echo "########################################################################"
78
79 cd configs/
80
Arthur She4be9f0d2024-04-05 13:36:23 -070081 git clone "https://review.trustedfirmware.org/ci/tf-ci-scripts"
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010082 # FIXME run-jjb.py was meant to be used for deployment only
83 # use JJB 'test' command instead of 'update' command
Arthur She4be9f0d2024-04-05 13:36:23 -070084 sed -i "s|update|test|" tf-ci-scripts/ci/run-jjb.py
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010085
86 export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
87 export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
88 jenkins-jobs --version
Arthur She4be9f0d2024-04-05 13:36:23 -070089 python3 tf-ci-scripts/ci/run-jjb.py
Benjamin Copelandb1c01aa2019-04-01 09:43:45 +010090 publishers:
91 - email:
Fathi Boudrab9abd882019-12-04 15:36:38 +020092 recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org'