Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-tftf-main |
| 3 | description: Main CI job for the Trusted Firmware-A Test Framework. |
Paul Sokolovsky | 02ce83a | 2023-07-16 17:26:27 +0300 | [diff] [blame] | 4 | node: docker-amd64-tf-a-jammy |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 5 | project-type: multijob |
| 6 | concurrent: true |
| 7 | disabled: false |
| 8 | properties: |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 9 | - build-discarder: |
| 10 | days-to-keep: 14 |
| 11 | num-to-keep: 60 |
| 12 | - throttle: |
| 13 | option: project |
| 14 | enabled: true |
| 15 | max-total: 5 |
| 16 | parameters: |
| 17 | - string: |
| 18 | name: TF_GERRIT_PROJECT |
| 19 | default: "TF-A/trusted-firmware-a" |
| 20 | description: "Gerrit project name for Trusted Firmware-A." |
| 21 | - string: |
| 22 | name: TF_GERRIT_BRANCH |
Manish V Badarkhe | dce7e21 | 2023-02-13 16:17:46 +0000 | [diff] [blame] | 23 | default: "refs/heads/integration" |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 24 | description: "Git project branch for Trusted Firmware-A." |
| 25 | - string: |
| 26 | name: TF_GERRIT_REFSPEC |
Manish V Badarkhe | dce7e21 | 2023-02-13 16:17:46 +0000 | [diff] [blame] | 27 | default: "+refs/heads/integration:refs/remotes/origin/integration" |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 28 | description: "Git refspec for Trusted Firmware-A." |
| 29 | - string: |
| 30 | name: TFTF_GERRIT_PROJECT |
| 31 | default: "TF-A/tf-a-tests" |
| 32 | description: "Gerrit project name for the Trusted Firmware-A Test Framework." |
| 33 | - string: |
| 34 | name: TFTF_GERRIT_BRANCH |
| 35 | default: "refs/heads/master" |
| 36 | description: "Git branch for the Trusted Firmware-A Test Framework." |
| 37 | - string: |
| 38 | name: TFTF_GERRIT_REFSPEC |
| 39 | default: "+refs/heads/master:refs/remotes/origin/master" |
| 40 | description: "Git refspec for the Trusted Firmware-A Test Framework." |
| 41 | - string: |
| 42 | name: CI_REFSPEC |
| 43 | default: "+refs/heads/master:refs/remotes/origin/master" |
| 44 | description: "Git refspec for the Trusted Firmware-A CI scripts." |
| 45 | - string: |
Manish V Badarkhe | 08e108b | 2025-04-11 08:01:14 +0100 | [diff] [blame] | 46 | name: RMM_REFSPEC |
| 47 | default: '+refs/heads/main:refs/remotes/origin/main' |
| 48 | description: | |
| 49 | tf-rmm refspec to use. The main branch is used by default. |
| 50 | - string: |
Saheer Babu | b495f03 | 2025-01-21 23:01:11 +0000 | [diff] [blame] | 51 | name: JOBS_REFSPEC |
| 52 | default: 'refs/heads/master' |
| 53 | description: | |
| 54 | tf-a-job-configs refspec to use. The master branch is used by default. |
| 55 | - string: |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 56 | name: SHARE_FOLDER |
| 57 | default: "/srv/shared/${JOB_NAME}/${BUILD_NUMBER}" |
| 58 | description: "Folder containing shared repositories for downstream pipeline jobs." |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 59 | triggers: |
| 60 | - timed: H H(0-6) * * 1-5 |
| 61 | wrappers: |
| 62 | - credentials-binding: |
| 63 | - ssh-user-private-key: |
| 64 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 65 | key-file-variable: CI_BOT_KEY |
| 66 | username-variable: CI_BOT_USERNAME |
| 67 | passphrase-variable: "" |
| 68 | - workspace-cleanup |
| 69 | - timestamps |
| 70 | builders: |
| 71 | - shell: |
| 72 | !include-raw: scripts/clone.sh |
| 73 | - shell: | |
| 74 | #!/bin/bash |
| 75 | |
| 76 | cat << EOF > tf-a-tests-env.param |
| 77 | GERRIT_PROJECT=${TFTF_GERRIT_PROJECT} |
| 78 | GERRIT_BRANCH=${TFTF_GERRIT_BRANCH} |
| 79 | GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC} |
| 80 | QA_SERVER_PROJECT=${JOB_NAME} |
| 81 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 82 | SHARE_FOLDER=${SHARE_FOLDER} |
| 83 | EOF |
| 84 | - multijob: |
| 85 | condition: COMPLETED |
| 86 | name: Static checks on TFTF |
| 87 | projects: |
| 88 | - current-parameters: true |
| 89 | kill-phase-on: NEVER |
| 90 | name: tf-a-static-checks |
| 91 | predefined-parameters: |- |
Manish V Badarkhe | 4a7c197 | 2022-12-28 18:37:04 +0000 | [diff] [blame] | 92 | REPO_UNDER_TEST=tf-a-tests |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 93 | property-file: tf-a-tests-env.param |
| 94 | - multijob: |
| 95 | condition: COMPLETED |
| 96 | name: Build TFTF |
| 97 | projects: |
| 98 | - current-parameters: true |
| 99 | kill-phase-on: NEVER |
| 100 | name: tf-a-ci-gateway |
Manish V Badarkhe | 09964ed | 2023-11-13 10:12:03 +0000 | [diff] [blame] | 101 | alias: tftf-l1-build |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 102 | predefined-parameters: |- |
| 103 | TEST_GROUPS=tftf-l1-build |
| 104 | property-file: tf-a-tests-env.param |
| 105 | - multijob: |
| 106 | condition: COMPLETED |
| 107 | name: Run TFTF FWU |
| 108 | projects: |
| 109 | - current-parameters: true |
| 110 | kill-phase-on: NEVER |
| 111 | name: tf-a-ci-gateway |
Manish V Badarkhe | 09964ed | 2023-11-13 10:12:03 +0000 | [diff] [blame] | 112 | alias: tftf-l2-fwu |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 113 | predefined-parameters: |- |
| 114 | TEST_GROUPS=tftf-l2-fwu |
| 115 | property-file: tf-a-tests-env.param |
| 116 | - multijob: |
| 117 | condition: COMPLETED |
| 118 | name: Run TFTF |
| 119 | projects: |
| 120 | - current-parameters: true |
| 121 | kill-phase-on: NEVER |
| 122 | name: tf-a-ci-gateway |
Manish V Badarkhe | 09964ed | 2023-11-13 10:12:03 +0000 | [diff] [blame] | 123 | alias: tftf-l1-fvp tftf-l1-juno |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 124 | predefined-parameters: |- |
Manish V Badarkhe | 09964ed | 2023-11-13 10:12:03 +0000 | [diff] [blame] | 125 | TEST_GROUPS=tftf-l1-fvp tftf-l1-juno |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 126 | property-file: tf-a-tests-env.param |
| 127 | - current-parameters: true |
| 128 | kill-phase-on: NEVER |
| 129 | name: tf-a-ci-gateway |
Manish V Badarkhe | 09964ed | 2023-11-13 10:12:03 +0000 | [diff] [blame] | 130 | alias: tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 131 | predefined-parameters: |- |
Manish V Badarkhe | 09964ed | 2023-11-13 10:12:03 +0000 | [diff] [blame] | 132 | TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq |
| 133 | property-file: tf-a-tests-env.param |
| 134 | - current-parameters: true |
| 135 | kill-phase-on: NEVER |
| 136 | name: tf-a-ci-gateway |
| 137 | alias: spm-l2-boot-tests tf-l2-boot-tests-spm-mm |
| 138 | predefined-parameters: |- |
Manish V Badarkhe | 0297b08 | 2023-12-04 18:14:58 +0000 | [diff] [blame] | 139 | TEST_GROUPS=spm-l2-boot-tests tf-l2-boot-tests-spm-mm |
Manish V Badarkhe | 09964ed | 2023-11-13 10:12:03 +0000 | [diff] [blame] | 140 | property-file: tf-a-tests-env.param |
| 141 | - current-parameters: true |
| 142 | kill-phase-on: NEVER |
| 143 | name: tf-a-ci-gateway |
| 144 | alias: spm-l3-boot-tests tf-l3-boot-tests-spm-mm |
| 145 | predefined-parameters: |- |
| 146 | TEST_GROUPS=spm-l3-boot-tests tf-l3-boot-tests-spm-mm |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 147 | property-file: tf-a-tests-env.param |
| 148 | - multijob: |
| 149 | condition: SUCCESSFUL |
| 150 | name: Run TFTF Extensive |
| 151 | projects: |
| 152 | - current-parameters: true |
| 153 | kill-phase-on: FAILURE |
| 154 | name: tf-a-ci-gateway |
Manish V Badarkhe | 09964ed | 2023-11-13 10:12:03 +0000 | [diff] [blame] | 155 | alias: tftf-l2-extensive-tests-fvp |
Chris Kay | 71c48d6 | 2022-12-20 11:13:25 +0000 | [diff] [blame] | 156 | predefined-parameters: |- |
| 157 | TEST_GROUPS=tftf-l2-extensive-tests-fvp |
| 158 | property-file: tf-a-tests-env.param |