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