Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 1 | - job: |
Saheer Babu | 2aa7658 | 2025-08-14 08:54:14 +0100 | [diff] [blame] | 2 | name: ci-job-configs-sanity-check-next |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 3 | project-type: freestyle |
| 4 | defaults: global |
| 5 | properties: |
| 6 | - authorization: |
Riku Voipio | d87aec7 | 2021-10-18 15:49:37 +0300 | [diff] [blame] | 7 | authenticated: |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 8 | - job-read |
| 9 | - job-extended-read |
Riku Voipio | d87aec7 | 2021-10-18 15:49:37 +0300 | [diff] [blame] | 10 | - job-discover |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 11 | - build-discarder: |
| 12 | days-to-keep: 30 |
| 13 | num-to-keep: 30 |
| 14 | disabled: false |
Saheer Babu | bf23444 | 2025-01-20 18:38:50 +0000 | [diff] [blame] | 15 | node: jjb |
Saheer Babu | 2aa7658 | 2025-08-14 08:54:14 +0100 | [diff] [blame] | 16 | display-name: 'CI job configs sanity check(Next)' |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 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' |
Saheer Babu | af02786 | 2025-08-14 09:39:01 +0100 | [diff] [blame] | 35 | project-pattern: 'next/ci/tf-ci-scripts' |
Benjamin Copeland | 7377588 | 2019-04-02 10:27:34 +0100 | [diff] [blame] | 36 | branches: |
| 37 | - branch-pattern: 'master' |
| 38 | - project-compare-type: 'PLAIN' |
Saheer Babu | af02786 | 2025-08-14 09:39:01 +0100 | [diff] [blame] | 39 | project-pattern: 'next/ci/tf-m-job-configs' |
Benjamin Copeland | 7377588 | 2019-04-02 10:27:34 +0100 | [diff] [blame] | 40 | branches: |
| 41 | - branch-pattern: 'master' |
| 42 | - project-compare-type: 'PLAIN' |
Saheer Babu | af02786 | 2025-08-14 09:39:01 +0100 | [diff] [blame] | 43 | project-pattern: 'next/ci/tf-a-job-configs' |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 44 | branches: |
| 45 | - branch-pattern: 'master' |
Benjamin Copeland | 771fcaf | 2020-05-05 11:19:34 +0100 | [diff] [blame] | 46 | - project-compare-type: 'PLAIN' |
Saheer Babu | af02786 | 2025-08-14 09:39:01 +0100 | [diff] [blame] | 47 | project-pattern: 'next/ci/hafnium-job-configs' |
Benjamin Copeland | ee421cf | 2020-05-05 11:13:30 +0100 | [diff] [blame] | 48 | branches: |
| 49 | - branch-pattern: 'master' |
Leonardo Sandoval | 55ddc24 | 2021-12-16 12:40:07 -0600 | [diff] [blame] | 50 | - project-compare-type: 'PLAIN' |
Saheer Babu | af02786 | 2025-08-14 09:39:01 +0100 | [diff] [blame] | 51 | project-pattern: 'next/ci/mbed-tls-job-configs' |
Leonardo Sandoval | 55ddc24 | 2021-12-16 12:40:07 -0600 | [diff] [blame] | 52 | branches: |
| 53 | - branch-pattern: 'master' |
Saheer Babu | 8733e09 | 2025-08-14 08:43:48 +0100 | [diff] [blame] | 54 | - project-compare-type: 'PLAIN' |
| 55 | project-pattern: 'next/ci/rmm-job-configs' |
| 56 | branches: |
| 57 | - branch-pattern: 'internal' |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 58 | 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 She | 4be9f0d | 2024-04-05 13:36:23 -0700 | [diff] [blame] | 81 | git clone "https://review.trustedfirmware.org/ci/tf-ci-scripts" |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 82 | # FIXME run-jjb.py was meant to be used for deployment only |
| 83 | # use JJB 'test' command instead of 'update' command |
Arthur She | 4be9f0d | 2024-04-05 13:36:23 -0700 | [diff] [blame] | 84 | sed -i "s|update|test|" tf-ci-scripts/ci/run-jjb.py |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 85 | |
| 86 | export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1) |
| 87 | export GIT_COMMIT=${GERRIT_PATCHSET_REVISION} |
| 88 | jenkins-jobs --version |
Arthur She | 4be9f0d | 2024-04-05 13:36:23 -0700 | [diff] [blame] | 89 | python3 tf-ci-scripts/ci/run-jjb.py |
Benjamin Copeland | b1c01aa | 2019-04-01 09:43:45 +0100 | [diff] [blame] | 90 | publishers: |
| 91 | - email: |
Fathi Boudra | b9abd88 | 2019-12-04 15:36:38 +0200 | [diff] [blame] | 92 | recipients: 'ben.copeland@linaro.org riku.voipio@linaro.org kelley.spoon@linaro.org fathi.boudra@linaro.org' |