Paul Sokolovsky | f558c3e | 2024-02-01 16:22:40 +0700 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-lts2.10-gerrit-tforg-l1 |
Paul Sokolovsky | 6067c52 | 2024-02-07 13:48:17 +0700 | [diff] [blame] | 3 | node: docker-amd64-tf-a-lts2.10-jammy |
Paul Sokolovsky | f558c3e | 2024-02-01 16:22:40 +0700 | [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: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 11 | - throttle: |
| 12 | option: project |
| 13 | enabled: true |
| 14 | max-total: 5 |
| 15 | - build-discarder: |
| 16 | days-to-keep: 14 |
Paul Sokolovsky | f558c3e | 2024-02-01 16:22:40 +0700 | [diff] [blame] | 17 | parameters: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 18 | - string: |
| 19 | name: GERRIT_PROJECT |
| 20 | default: TF-A/trusted-firmware-a |
| 21 | - string: |
| 22 | name: GERRIT_BRANCH |
| 23 | default: refs/heads/lts-v2.10 |
| 24 | - string: |
| 25 | name: GERRIT_REFSPEC |
| 26 | default: +refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10 |
| 27 | - string: |
| 28 | name: GERRIT_PATCHSET_NUMBER |
| 29 | default: "" |
| 30 | - string: |
| 31 | name: GERRIT_CHANGE_NUMBER |
| 32 | default: "" |
| 33 | - string: |
| 34 | name: TF_GERRIT_REFSPEC |
| 35 | default: ${GERRIT_REFSPEC} |
| 36 | description: Parameter only used by the clone script |
| 37 | - string: |
| 38 | name: TFTF_GERRIT_PROJECT |
| 39 | default: TF-A/tf-a-tests |
| 40 | - string: |
| 41 | name: TFTF_GERRIT_BRANCH |
| 42 | default: refs/heads/lts-v2.10 |
| 43 | - string: |
| 44 | name: TFTF_GERRIT_REFSPEC |
| 45 | default: +refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10 |
| 46 | - string: |
| 47 | name: SPM_REFSPEC |
| 48 | default: v2.10 |
| 49 | description: | |
| 50 | SPM(Hafnium) refspec to use. The master branch is used by default. |
| 51 | - string: |
| 52 | name: CI_REFSPEC |
| 53 | default: +refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10 |
| 54 | - string: |
| 55 | name: JOBS_REFSPEC |
| 56 | default: refs/heads/master |
| 57 | description: | |
| 58 | tf-a-job-configs refspec to use. The master branch is used by default. |
| 59 | - string: |
| 60 | name: MBEDTLS_URL |
| 61 | default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz |
| 62 | - string: |
| 63 | name: SHARE_FOLDER |
| 64 | default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER} |
| 65 | description: Folder containing shared repositories for downstream pipeline jobs |
Paul Sokolovsky | f558c3e | 2024-02-01 16:22:40 +0700 | [diff] [blame] | 66 | wrappers: |
| 67 | - credentials-binding: |
| 68 | - ssh-user-private-key: |
| 69 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 70 | key-file-variable: CI_BOT_KEY |
| 71 | username-variable: CI_BOT_USERNAME |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 72 | passphrase-variable: "" |
Paul Sokolovsky | f558c3e | 2024-02-01 16:22:40 +0700 | [diff] [blame] | 73 | - workspace-cleanup |
| 74 | - timestamps |
| 75 | builders: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 76 | - shell: !include-raw: scripts/clone.sh |
| 77 | - shell: | |
| 78 | #!/bin/bash |
| 79 | set -e |
| 80 | cat << EOF > env.param |
| 81 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 82 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
| 83 | GERRIT_HOST=${GERRIT_HOST} |
| 84 | QA_SERVER_PROJECT=${JOB_NAME} |
| 85 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 86 | TF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 87 | TF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 88 | TF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 89 | SHARE_FOLDER=${SHARE_FOLDER} |
| 90 | EOF |
| 91 | - multijob: |
| 92 | name: Lint commit messages |
| 93 | condition: COMPLETED |
| 94 | projects: |
| 95 | - name: tf-a-commitlint |
| 96 | kill-phase-on: NEVER |
| 97 | predefined-parameters: | |
| 98 | URL=https://review.trustedfirmware.org/${GERRIT_PROJECT} |
| 99 | REFSPEC=${GERRIT_REFSPEC} |
| 100 | REFNAME=${GERRIT_PATCHSET_REVISION} |
| 101 | REFNAME_BASE=origin/${GERRIT_BRANCH} |
| 102 | - multijob: |
| 103 | condition: COMPLETED |
| 104 | name: Build and static checks |
| 105 | projects: |
| 106 | - kill-phase-on: NEVER |
| 107 | name: tf-a-static-checks |
| 108 | current-parameters: true |
| 109 | predefined-parameters: |- |
| 110 | TEST_GROUPS=tf-l2-scan-build |
| 111 | ENABLE_STATIC_CHECK=true |
| 112 | property-file: env.param |
| 113 | - multijob: |
| 114 | condition: COMPLETED |
| 115 | name: Run doc build check |
| 116 | projects: |
| 117 | - kill-phase-on: NEVER |
| 118 | name: tf-a-lts2.10-ci-gateway |
| 119 | current-parameters: true |
| 120 | predefined-parameters: | |
| 121 | TEST_GROUPS=tf-l1-check-docs |
| 122 | property-file: env.param |
| 123 | - multijob: |
| 124 | condition: COMPLETED |
| 125 | name: Run build tests |
| 126 | projects: |
| 127 | - kill-phase-on: NEVER |
| 128 | name: tf-a-lts2.10-ci-gateway |
| 129 | current-parameters: true |
| 130 | predefined-parameters: | |
| 131 | TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests |
| 132 | property-file: env.param |
Paul Sokolovsky | f558c3e | 2024-02-01 16:22:40 +0700 | [diff] [blame] | 133 | triggers: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 134 | - gerrit: |
| 135 | server-name: review.trustedfirmware.org |
| 136 | trigger-on: |
| 137 | - comment-added-event: |
| 138 | approval-category: Allow-CI |
| 139 | approval-value: 1 |
| 140 | projects: |
| 141 | - project-compare-type: PLAIN |
| 142 | project-pattern: TF-A/trusted-firmware-a |
| 143 | branches: |
| 144 | - branch-compare-type: PLAIN |
| 145 | branch-pattern: lts-v2.10 |
| 146 | override-votes: true |
| 147 | gerrit-build-started-verified-value: 0 |
| 148 | gerrit-build-successful-verified-value: 1 |
| 149 | gerrit-build-failed-verified-value: -1 |
| 150 | gerrit-build-unstable-verified-value: -1 |
| 151 | gerrit-build-notbuilt-verified-value: 0 |
| 152 | gerrit-build-started-codereview-value: 0 |
| 153 | gerrit-build-successful-codereview-value: 0 |
| 154 | gerrit-build-failed-codereview-value: 0 |
| 155 | gerrit-build-unstable-codereview-value: 0 |
| 156 | gerrit-build-notbuilt-codereview-value: 0 |