Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-gerrit-tforg-l1 |
| 3 | node: master |
| 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: 180 |
| 17 | num-to-keep: 180 |
| 18 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame^] | 19 | !include: authorization.yaml.inc |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 20 | parameters: |
| 21 | - string: |
| 22 | name: GERRIT_PROJECT |
| 23 | default: 'TF-A/trusted-firmware-a' |
| 24 | - string: |
| 25 | name: GERRIT_BRANCH |
| 26 | default: 'master' |
| 27 | - string: |
| 28 | name: GERRIT_REFSPEC |
| 29 | default: 'refs/heads/master' |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 30 | - string: |
| 31 | name: GERRIT_PATCHSET_NUMBER |
| 32 | default: '' |
| 33 | - string: |
| 34 | name: GERRIT_CHANGE_NUMBER |
| 35 | default: '' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 36 | wrappers: |
| 37 | - credentials-binding: |
| 38 | - ssh-user-private-key: |
| 39 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 40 | key-file-variable: CI_BOT_KEY |
| 41 | username-variable: CI_BOT_USERNAME |
| 42 | passphrase-variable: '' |
| 43 | - workspace-cleanup |
| 44 | - timestamps |
| 45 | builders: |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame] | 46 | - shell: | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 47 | #!/bin/bash |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 48 | set -e |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 49 | cat << EOF > env.param |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 50 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 51 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
Milosz Wasilewski | 204a27e | 2020-12-10 10:29:45 +0000 | [diff] [blame] | 52 | GERRIT_HOST=${GERRIT_HOST} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 53 | QA_SERVER_PROJECT=${JOB_NAME} |
| 54 | QA_SERVER_VERSION=${BUILD_NUMBER} |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 55 | TF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 56 | TF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 57 | TF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 58 | EOF |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 59 | - multijob: |
| 60 | condition: COMPLETED |
| 61 | name: Build and static checks |
| 62 | projects: |
| 63 | - kill-phase-on: NEVER |
| 64 | name: tf-ci-gateway |
| 65 | predefined-parameters: |- |
| 66 | TEST_GROUPS=tf-l2-scan-build |
| 67 | ENABLE_STATIC_CHECK=true |
| 68 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 69 | - multijob: |
| 70 | condition: COMPLETED |
| 71 | name: Run doc build check |
| 72 | projects: |
| 73 | - kill-phase-on: NEVER |
| 74 | name: tf-ci-gateway |
| 75 | predefined-parameters: | |
| 76 | TEST_GROUPS=tf-l1-check-docs |
| 77 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 78 | - multijob: |
| 79 | condition: COMPLETED |
| 80 | name: Run build tests |
| 81 | projects: |
| 82 | - kill-phase-on: NEVER |
| 83 | name: tf-ci-gateway |
| 84 | predefined-parameters: | |
| 85 | TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat |
| 86 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 87 | - multijob: |
| 88 | condition: COMPLETED |
| 89 | name: Run boot tests |
| 90 | projects: |
| 91 | - kill-phase-on: NEVER |
| 92 | name: tf-ci-gateway |
| 93 | predefined-parameters: | |
| 94 | 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 |
| 95 | property-file: env.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 96 | triggers: |
| 97 | - gerrit: |
| 98 | server-name: review.trustedfirmware.org |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 99 | trigger-on: |
| 100 | - comment-added-event: |
Riku Voipio | cdeb320 | 2020-12-03 10:42:58 +0200 | [diff] [blame] | 101 | approval-category: "Allow-CI" |
| 102 | approval-value: 1 |
| 103 | projects: |
| 104 | - project-compare-type: PLAIN |
| 105 | project-pattern: TF-A/trusted-firmware-a |
| 106 | branches: |
| 107 | - branch-compare-type: PLAIN |
| 108 | branch-pattern: integration |