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: |
| 11 | - throttle: |
| 12 | option: project |
| 13 | enabled: true |
| 14 | max-total: 5 |
| 15 | - build-discarder: |
| 16 | days-to-keep: 14 |
| 17 | - authorization: |
| 18 | !include: authorization.yaml.inc |
| 19 | parameters: |
| 20 | - string: |
| 21 | name: GERRIT_PROJECT |
| 22 | default: 'TF-A/tf-a-tests' |
| 23 | - string: |
| 24 | name: GERRIT_BRANCH |
| 25 | default: 'refs/heads/lts-v2.8' |
| 26 | - string: |
| 27 | name: GERRIT_REFSPEC |
| 28 | default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8' |
| 29 | - string: |
| 30 | name: GERRIT_PATCHSET_NUMBER |
| 31 | default: '' |
| 32 | - string: |
| 33 | name: GERRIT_CHANGE_NUMBER |
| 34 | default: '' |
| 35 | - string: |
Paul Sokolovsky | f433ac5 | 2023-08-22 14:23:01 +0300 | [diff] [blame] | 36 | name: TF_GERRIT_BRANCH |
| 37 | default: 'refs/heads/lts-v2.8' |
Paul Sokolovsky | fa4783a | 2024-02-02 19:28:29 +0700 | [diff] [blame] | 38 | description: "Git project branch for Trusted Firmware-A." |
Paul Sokolovsky | f433ac5 | 2023-08-22 14:23:01 +0300 | [diff] [blame] | 39 | - string: |
Paul Sokolovsky | d254bfe | 2023-07-27 14:32:20 +0300 | [diff] [blame] | 40 | name: TF_GERRIT_REFSPEC |
| 41 | default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8' |
Paul Sokolovsky | fa4783a | 2024-02-02 19:28:29 +0700 | [diff] [blame] | 42 | description: "Git refspec for Trusted Firmware-A." |
Paul Sokolovsky | d254bfe | 2023-07-27 14:32:20 +0300 | [diff] [blame] | 43 | - string: |
Paul Sokolovsky | ec66546 | 2023-07-25 22:00:36 +0300 | [diff] [blame] | 44 | name: TFTF_GERRIT_REFSPEC |
| 45 | default: ${GERRIT_REFSPEC} |
| 46 | description: 'Parameter only used by the clone script' |
| 47 | - string: |
Paul Sokolovsky | c3e1f27 | 2023-08-21 23:47:29 +0300 | [diff] [blame] | 48 | name: SPM_REFSPEC |
| 49 | default: 'v2.8' |
| 50 | description: | |
| 51 | SPM (Hafnium) refspec to use. |
| 52 | - string: |
Paul Sokolovsky | 8f749e9 | 2023-07-27 14:15:52 +0300 | [diff] [blame] | 53 | name: CI_REFSPEC |
| 54 | default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8' |
| 55 | - string: |
Saheer Babu | b495f03 | 2025-01-21 23:01:11 +0000 | [diff] [blame^] | 56 | name: JOBS_REFSPEC |
| 57 | default: 'refs/heads/master' |
| 58 | description: | |
| 59 | tf-a-job-configs refspec to use. The master branch is used by default. |
| 60 | - string: |
Paul Sokolovsky | 3a75060 | 2023-08-20 09:21:16 +0300 | [diff] [blame] | 61 | name: MBEDTLS_URL |
Yann Gautier | 716b39f | 2025-01-10 17:37:45 +0100 | [diff] [blame] | 62 | default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.2.tar.gz' |
Paul Sokolovsky | 3a75060 | 2023-08-20 09:21:16 +0300 | [diff] [blame] | 63 | - string: |
Paul Sokolovsky | ec66546 | 2023-07-25 22:00:36 +0300 | [diff] [blame] | 64 | name: SHARE_FOLDER |
| 65 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 66 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 67 | wrappers: |
| 68 | - credentials-binding: |
| 69 | - ssh-user-private-key: |
| 70 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 71 | key-file-variable: CI_BOT_KEY |
| 72 | username-variable: CI_BOT_USERNAME |
| 73 | passphrase-variable: '' |
| 74 | - workspace-cleanup |
| 75 | - timestamps |
| 76 | builders: |
| 77 | - shell: |
| 78 | !include-raw: scripts/clone.sh |
| 79 | - shell: | |
| 80 | #!/bin/bash |
| 81 | set -e |
| 82 | cat << EOF > env.param |
| 83 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 84 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
| 85 | GERRIT_HOST=${GERRIT_HOST} |
| 86 | QA_SERVER_PROJECT=${JOB_NAME} |
| 87 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 88 | TFTF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 89 | TFTF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 90 | TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 91 | SHARE_FOLDER=${SHARE_FOLDER} |
| 92 | EOF |
| 93 | - multijob: |
| 94 | condition: COMPLETED |
| 95 | name: Build and static checks |
| 96 | projects: |
| 97 | - kill-phase-on: NEVER |
| 98 | name: tf-a-static-checks |
Paul Sokolovsky | 9420350 | 2024-02-05 15:46:41 +0700 | [diff] [blame] | 99 | current-parameters: true |
Paul Sokolovsky | ec66546 | 2023-07-25 22:00:36 +0300 | [diff] [blame] | 100 | predefined-parameters: |- |
| 101 | REPO_UNDER_TEST=tf-a-tests |
| 102 | property-file: env.param |
| 103 | - multijob: |
| 104 | condition: COMPLETED |
| 105 | name: Run doc build check |
| 106 | projects: |
| 107 | - kill-phase-on: NEVER |
| 108 | name: tf-a-lts2.8-ci-gateway |
Paul Sokolovsky | 9420350 | 2024-02-05 15:46:41 +0700 | [diff] [blame] | 109 | current-parameters: true |
Paul Sokolovsky | ec66546 | 2023-07-25 22:00:36 +0300 | [diff] [blame] | 110 | predefined-parameters: | |
| 111 | TEST_GROUPS=tftf-l1-check-docs |
| 112 | property-file: env.param |
| 113 | - multijob: |
| 114 | condition: COMPLETED |
| 115 | name: Build TF-A-Tests |
| 116 | projects: |
| 117 | - kill-phase-on: NEVER |
| 118 | name: tf-a-lts2.8-ci-gateway |
Paul Sokolovsky | 9420350 | 2024-02-05 15:46:41 +0700 | [diff] [blame] | 119 | current-parameters: true |
Paul Sokolovsky | ec66546 | 2023-07-25 22:00:36 +0300 | [diff] [blame] | 120 | predefined-parameters: | |
| 121 | TEST_GROUPS=tftf-l1-build |
| 122 | property-file: env.param |
| 123 | - multijob: |
| 124 | condition: COMPLETED |
| 125 | name: Basic TF-A-Tests test cases |
| 126 | projects: |
| 127 | - kill-phase-on: NEVER |
| 128 | name: tf-a-lts2.8-ci-gateway |
Paul Sokolovsky | 9420350 | 2024-02-05 15:46:41 +0700 | [diff] [blame] | 129 | current-parameters: true |
Paul Sokolovsky | ec66546 | 2023-07-25 22:00:36 +0300 | [diff] [blame] | 130 | predefined-parameters: | |
| 131 | TEST_GROUPS=tftf-l1-fvp |
| 132 | property-file: env.param |
| 133 | triggers: |
| 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/tf-a-tests |
| 143 | branches: |
| 144 | - branch-compare-type: PLAIN |
| 145 | branch-pattern: lts-v2.8 |
| 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 |