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