Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 1 | - job: |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 2 | name: tf-a-gerrit-tforg-l1 |
Paul Sokolovsky | 370f1f5 | 2023-06-05 21:57:47 +0300 | [diff] [blame] | 3 | node: docker-amd64-tf-a-jammy |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 4 | project-type: multijob |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | description: | |
| 8 | Job that triggers for every TF-A patch approved with the Allow-CI+1 |
| 9 | label on review.trustedfirmware.org. |
| 10 | properties: |
| 11 | - throttle: |
| 12 | option: project |
| 13 | enabled: true |
| 14 | max-total: 5 |
| 15 | - build-discarder: |
Arthur She | e5eba50 | 2025-02-21 08:06:39 -0800 | [diff] [blame] | 16 | days-to-keep: 15 |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 17 | parameters: |
| 18 | - string: |
| 19 | name: GERRIT_PROJECT |
| 20 | default: 'TF-A/trusted-firmware-a' |
| 21 | - string: |
| 22 | name: GERRIT_BRANCH |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 23 | default: 'refs/heads/integration' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 24 | - string: |
| 25 | name: GERRIT_REFSPEC |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 26 | default: '+refs/heads/integration:refs/remotes/origin/integration' |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 27 | - string: |
| 28 | name: GERRIT_PATCHSET_NUMBER |
| 29 | default: '' |
| 30 | - string: |
| 31 | name: GERRIT_CHANGE_NUMBER |
| 32 | default: '' |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 33 | - string: |
| 34 | name: TF_GERRIT_REFSPEC |
| 35 | default: ${GERRIT_REFSPEC} |
| 36 | description: 'Parameter only used by the clone script' |
| 37 | - string: |
Paul Sokolovsky | 3f52301 | 2023-03-01 16:19:39 +0700 | [diff] [blame] | 38 | name: TFTF_GERRIT_PROJECT |
| 39 | default: 'TF-A/tf-a-tests' |
| 40 | - string: |
| 41 | name: TFTF_GERRIT_BRANCH |
| 42 | default: 'refs/heads/master' |
| 43 | - string: |
| 44 | name: TFTF_GERRIT_REFSPEC |
| 45 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 46 | - string: |
Paul Sokolovsky | 0598651 | 2024-02-01 16:03:50 +0700 | [diff] [blame] | 47 | name: SPM_REFSPEC |
| 48 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 49 | description: | |
| 50 | SPM(Hafnium) refspec to use. The master branch is used by default. |
| 51 | - string: |
Manish V Badarkhe | 08e108b | 2025-04-11 08:01:14 +0100 | [diff] [blame] | 52 | name: RMM_REFSPEC |
| 53 | default: '+refs/heads/main:refs/remotes/origin/main' |
| 54 | description: | |
| 55 | tf-rmm refspec to use. The main branch is used by default. |
| 56 | - string: |
Paul Sokolovsky | 0598651 | 2024-02-01 16:03:50 +0700 | [diff] [blame] | 57 | name: CI_REFSPEC |
| 58 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 59 | - string: |
Saheer Babu | b495f03 | 2025-01-21 23:01:11 +0000 | [diff] [blame] | 60 | name: JOBS_REFSPEC |
| 61 | default: 'refs/heads/master' |
| 62 | description: | |
| 63 | tf-a-job-configs refspec to use. The master branch is used by default. |
| 64 | - string: |
Paul Sokolovsky | 0598651 | 2024-02-01 16:03:50 +0700 | [diff] [blame] | 65 | name: MBEDTLS_URL |
Lauren Wehrmeister | cec409a | 2025-04-03 14:34:02 -0500 | [diff] [blame] | 66 | default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz' |
Paul Sokolovsky | 0598651 | 2024-02-01 16:03:50 +0700 | [diff] [blame] | 67 | - string: |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 68 | name: SHARE_FOLDER |
| 69 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 70 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 71 | wrappers: |
| 72 | - credentials-binding: |
| 73 | - ssh-user-private-key: |
| 74 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 75 | key-file-variable: CI_BOT_KEY |
| 76 | username-variable: CI_BOT_USERNAME |
| 77 | passphrase-variable: '' |
| 78 | - workspace-cleanup |
| 79 | - timestamps |
| 80 | builders: |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 81 | - shell: |
| 82 | !include-raw: scripts/clone.sh |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame] | 83 | - shell: | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 84 | #!/bin/bash |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 85 | set -e |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 86 | cat << EOF > env.param |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 87 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 88 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
Milosz Wasilewski | 204a27e | 2020-12-10 10:29:45 +0000 | [diff] [blame] | 89 | GERRIT_HOST=${GERRIT_HOST} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 90 | QA_SERVER_PROJECT=${JOB_NAME} |
| 91 | QA_SERVER_VERSION=${BUILD_NUMBER} |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 92 | TF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 93 | TF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 94 | TF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 95 | SHARE_FOLDER=${SHARE_FOLDER} |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 96 | EOF |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 97 | - multijob: |
Chris Kay | e23eab9 | 2021-04-19 15:04:15 +0100 | [diff] [blame] | 98 | name: Lint commit messages |
| 99 | condition: COMPLETED |
| 100 | projects: |
| 101 | - name: tf-a-commitlint |
| 102 | kill-phase-on: NEVER |
| 103 | predefined-parameters: | |
Saheer Babu | c4b886d | 2025-01-22 00:31:43 +0000 | [diff] [blame] | 104 | URL=https://review.trustedfirmware.org/${GERRIT_PROJECT} |
Chris Kay | e23eab9 | 2021-04-19 15:04:15 +0100 | [diff] [blame] | 105 | REFSPEC=${GERRIT_REFSPEC} |
Chris Kay | 22e76f2 | 2021-04-21 18:03:35 +0100 | [diff] [blame] | 106 | REFNAME=${GERRIT_PATCHSET_REVISION} |
| 107 | REFNAME_BASE=origin/${GERRIT_BRANCH} |
Chris Kay | e23eab9 | 2021-04-19 15:04:15 +0100 | [diff] [blame] | 108 | - multijob: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 109 | condition: COMPLETED |
| 110 | name: Build and static checks |
| 111 | projects: |
| 112 | - kill-phase-on: NEVER |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 113 | name: tf-a-static-checks |
Paul Sokolovsky | d1fb5c7 | 2024-02-01 16:09:40 +0700 | [diff] [blame] | 114 | current-parameters: true |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 115 | predefined-parameters: |- |
| 116 | TEST_GROUPS=tf-l2-scan-build |
| 117 | ENABLE_STATIC_CHECK=true |
| 118 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 119 | - multijob: |
| 120 | condition: COMPLETED |
| 121 | name: Run doc build check |
| 122 | projects: |
| 123 | - kill-phase-on: NEVER |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 124 | name: tf-a-ci-gateway |
Paul Sokolovsky | d1fb5c7 | 2024-02-01 16:09:40 +0700 | [diff] [blame] | 125 | current-parameters: true |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 126 | predefined-parameters: | |
| 127 | TEST_GROUPS=tf-l1-check-docs |
| 128 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 129 | - multijob: |
| 130 | condition: COMPLETED |
| 131 | name: Run build tests |
| 132 | projects: |
| 133 | - kill-phase-on: NEVER |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 134 | name: tf-a-ci-gateway |
Paul Sokolovsky | d1fb5c7 | 2024-02-01 16:09:40 +0700 | [diff] [blame] | 135 | current-parameters: true |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 136 | predefined-parameters: | |
Leonardo Sandoval | 0e0ee89 | 2021-02-16 10:39:51 -0600 | [diff] [blame] | 137 | TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 138 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 139 | triggers: |
| 140 | - gerrit: |
| 141 | server-name: review.trustedfirmware.org |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 142 | trigger-on: |
| 143 | - comment-added-event: |
Riku Voipio | cdeb320 | 2020-12-03 10:42:58 +0200 | [diff] [blame] | 144 | approval-category: "Allow-CI" |
| 145 | approval-value: 1 |
| 146 | projects: |
| 147 | - project-compare-type: PLAIN |
Saheer Babu | fd52422 | 2025-01-21 23:42:41 +0000 | [diff] [blame] | 148 | project-pattern: next/TF-A/trusted-firmware-a |
Riku Voipio | cdeb320 | 2020-12-03 10:42:58 +0200 | [diff] [blame] | 149 | branches: |
| 150 | - branch-compare-type: PLAIN |
Saheer Babu | fd52422 | 2025-01-21 23:42:41 +0000 | [diff] [blame] | 151 | branch-pattern: openci-migration |
Arthur She | 06125a4 | 2021-10-19 22:58:21 -0700 | [diff] [blame] | 152 | override-votes: true |
| 153 | gerrit-build-started-verified-value: 0 |
| 154 | gerrit-build-successful-verified-value: 1 |
| 155 | gerrit-build-failed-verified-value: -1 |
| 156 | gerrit-build-unstable-verified-value: -1 |
| 157 | gerrit-build-notbuilt-verified-value: 0 |
| 158 | gerrit-build-started-codereview-value: 0 |
| 159 | gerrit-build-successful-codereview-value: 0 |
| 160 | gerrit-build-failed-codereview-value: 0 |
| 161 | gerrit-build-unstable-codereview-value: 0 |
| 162 | gerrit-build-notbuilt-codereview-value: 0 |