Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-gerrit-tforg-l1 |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame^] | 3 | node: docker-amd64-tf-a-bionic |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [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: |
Leonardo Sandoval | a4feb55 | 2021-03-02 12:10:21 -0600 | [diff] [blame] | 16 | days-to-keep: 14 |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 17 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame] | 18 | !include: authorization.yaml.inc |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 19 | parameters: |
| 20 | - string: |
| 21 | name: GERRIT_PROJECT |
| 22 | default: 'TF-A/trusted-firmware-a' |
| 23 | - string: |
| 24 | name: GERRIT_BRANCH |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 25 | default: 'refs/heads/integration' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 26 | - string: |
| 27 | name: GERRIT_REFSPEC |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 28 | default: '+refs/heads/integration:refs/remotes/origin/integration' |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 29 | - string: |
| 30 | name: GERRIT_PATCHSET_NUMBER |
| 31 | default: '' |
| 32 | - string: |
| 33 | name: GERRIT_CHANGE_NUMBER |
| 34 | default: '' |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame^] | 35 | - string: |
| 36 | name: TF_GERRIT_REFSPEC |
| 37 | default: ${GERRIT_REFSPEC} |
| 38 | description: 'Parameter only used by the clone script' |
| 39 | - string: |
| 40 | name: SHARE_FOLDER |
| 41 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 42 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 43 | wrappers: |
| 44 | - credentials-binding: |
| 45 | - ssh-user-private-key: |
| 46 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 47 | key-file-variable: CI_BOT_KEY |
| 48 | username-variable: CI_BOT_USERNAME |
| 49 | passphrase-variable: '' |
| 50 | - workspace-cleanup |
| 51 | - timestamps |
| 52 | builders: |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame^] | 53 | - shell: |
| 54 | !include-raw: scripts/clone.sh |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame] | 55 | - shell: | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 56 | #!/bin/bash |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 57 | set -e |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 58 | cat << EOF > env.param |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 59 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 60 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
Milosz Wasilewski | 204a27e | 2020-12-10 10:29:45 +0000 | [diff] [blame] | 61 | GERRIT_HOST=${GERRIT_HOST} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 62 | QA_SERVER_PROJECT=${JOB_NAME} |
| 63 | QA_SERVER_VERSION=${BUILD_NUMBER} |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 64 | TF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 65 | TF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 66 | TF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame^] | 67 | SHARE_FOLDER=${SHARE_FOLDER} |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 68 | EOF |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 69 | - multijob: |
Chris Kay | e23eab9 | 2021-04-19 15:04:15 +0100 | [diff] [blame] | 70 | name: Lint commit messages |
| 71 | condition: COMPLETED |
| 72 | projects: |
| 73 | - name: tf-a-commitlint |
| 74 | kill-phase-on: NEVER |
| 75 | predefined-parameters: | |
| 76 | REFSPEC=${GERRIT_REFSPEC} |
Chris Kay | 22e76f2 | 2021-04-21 18:03:35 +0100 | [diff] [blame] | 77 | REFNAME=${GERRIT_PATCHSET_REVISION} |
| 78 | REFNAME_BASE=origin/${GERRIT_BRANCH} |
Chris Kay | e23eab9 | 2021-04-19 15:04:15 +0100 | [diff] [blame] | 79 | - multijob: |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 80 | condition: COMPLETED |
| 81 | name: Build and static checks |
| 82 | projects: |
| 83 | - kill-phase-on: NEVER |
Leonardo Sandoval | 72efe6a | 2021-02-12 18:20:05 -0600 | [diff] [blame] | 84 | name: tf-static-checks |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 85 | predefined-parameters: |- |
| 86 | TEST_GROUPS=tf-l2-scan-build |
| 87 | ENABLE_STATIC_CHECK=true |
| 88 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 89 | - multijob: |
| 90 | condition: COMPLETED |
| 91 | name: Run doc build check |
| 92 | projects: |
| 93 | - kill-phase-on: NEVER |
| 94 | name: tf-ci-gateway |
| 95 | predefined-parameters: | |
| 96 | TEST_GROUPS=tf-l1-check-docs |
| 97 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 98 | - multijob: |
| 99 | condition: COMPLETED |
| 100 | name: Run build tests |
| 101 | projects: |
| 102 | - kill-phase-on: NEVER |
| 103 | name: tf-ci-gateway |
| 104 | predefined-parameters: | |
Leonardo Sandoval | 0e0ee89 | 2021-02-16 10:39:51 -0600 | [diff] [blame] | 105 | TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 106 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 107 | - multijob: |
| 108 | condition: COMPLETED |
| 109 | name: Run boot tests |
| 110 | projects: |
| 111 | - kill-phase-on: NEVER |
| 112 | name: tf-ci-gateway |
| 113 | predefined-parameters: | |
| 114 | TEST_GROUPS=tf-l1-boot-tests-aarch32 tf-l1-boot-tests-bl2_el3 tf-l1-boot-tests-cortex tf-l1-boot-tests-foundation tf-l1-boot-tests-gicv2 tf-l1-boot-tests-juno tf-l1-boot-tests-misc |
| 115 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 116 | triggers: |
| 117 | - gerrit: |
| 118 | server-name: review.trustedfirmware.org |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 119 | trigger-on: |
| 120 | - comment-added-event: |
Riku Voipio | cdeb320 | 2020-12-03 10:42:58 +0200 | [diff] [blame] | 121 | approval-category: "Allow-CI" |
| 122 | approval-value: 1 |
| 123 | projects: |
| 124 | - project-compare-type: PLAIN |
| 125 | project-pattern: TF-A/trusted-firmware-a |
| 126 | branches: |
| 127 | - branch-compare-type: PLAIN |
| 128 | branch-pattern: integration |