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