Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-gerrit-tforg-l2 |
| 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+2 |
| 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 | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 20 | parameters: |
| 21 | - string: |
| 22 | name: GERRIT_PROJECT |
| 23 | default: 'TF-A/trusted-firmware-a' |
| 24 | - string: |
| 25 | name: GERRIT_BRANCH |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 26 | default: 'refs/heads/integration' |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 27 | - string: |
| 28 | name: GERRIT_REFSPEC |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 29 | default: '+refs/heads/integration:refs/remotes/origin/integration' |
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 | 7bc39d7 | 2020-10-12 17:11:03 -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 | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 47 | #!/bin/bash |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 48 | set -e |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -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 | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 55 | GERRIT_PROJECT=${GERRIT_PROJECT} |
| 56 | GERRIT_BRANCH=${GERRIT_BRANCH} |
| 57 | GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 58 | EOF |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 59 | - multijob: |
| 60 | condition: COMPLETED |
| 61 | name: Carry out level 1 tests |
| 62 | projects: |
| 63 | - kill-phase-on: NEVER |
| 64 | name: tf-tftf-gerrit-tforg-l1 |
| 65 | current-parameters: true |
| 66 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 67 | - multijob: |
| 68 | condition: COMPLETED |
| 69 | name: Build Trusted Firmware |
| 70 | projects: |
| 71 | - kill-phase-on: NEVER |
| 72 | name: tf-ci-gateway |
| 73 | predefined-parameters: | |
| 74 | TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno |
| 75 | TF_REFSPEC=$GERRIT_REFSPEC |
| 76 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 77 | - multijob: |
| 78 | condition: COMPLETED |
| 79 | name: TFTF tests |
| 80 | projects: |
| 81 | - kill-phase-on: NEVER |
| 82 | name: tf-ci-gateway |
| 83 | predefined-parameters: | |
Leonardo Sandoval | 0b9ee85 | 2021-02-12 18:27:37 -0600 | [diff] [blame^] | 84 | TEST_GROUPS=tftf-l1-fvp tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu tftf-l2-fvp |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 85 | TF_REFSPEC=$GERRIT_REFSPEC |
| 86 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 87 | - multijob: |
| 88 | condition: COMPLETED |
| 89 | name: Boot up to the Linux shell prompt |
| 90 | projects: |
| 91 | - kill-phase-on: NEVER |
| 92 | name: tf-ci-gateway |
| 93 | predefined-parameters: | |
Leonardo Sandoval | 67ac6f1 | 2020-12-10 11:02:26 -0600 | [diff] [blame] | 94 | TEST_GROUPS=tf-l2-boot-tests-aarch32 tf-l2-boot-tests-bl2_el3 tf-l2-boot-tests-cortex tf-l2-boot-tests-foundation tf-l2-boot-tests-juno tf-l2-boot-tests-latest tf-l2-boot-tests-misc tf-l2-boot-tests-rootfs tf-l2-boot-tests-spm-mm |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 95 | TF_REFSPEC=$GERRIT_REFSPEC |
| 96 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 97 | - multijob: |
| 98 | condition: COMPLETED |
| 99 | name: Coverity Scan |
| 100 | projects: |
| 101 | - kill-phase-on: NEVER |
| 102 | name: tf-ci-gateway |
| 103 | predefined-parameters: | |
| 104 | TEST_GROUPS=tf-l2-coverity-misra |
| 105 | TF_REFSPEC=$GERRIT_REFSPEC |
| 106 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 107 | - conditional-step: |
| 108 | condition-command: |- |
| 109 | [ "$NOMINATION_FILE" ] |
| 110 | condition-kind: shell |
| 111 | on-evaluation-failure: dont-run |
| 112 | steps: |
| 113 | - multijob: |
| 114 | condition: COMPLETED |
| 115 | name: Nominated tests |
| 116 | projects: |
| 117 | - kill-phase-on: NEVER |
| 118 | name: tf-ci-gateway |
| 119 | predefined-parameters: | |
| 120 | TEST_GROUPS=@$NOMINATION_FILE |
| 121 | TF_REFSPEC=$GERRIT_REFSPEC |
| 122 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 123 | triggers: |
| 124 | - gerrit: |
| 125 | server-name: review.trustedfirmware.org |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 126 | trigger-on: |
| 127 | - comment-added-event: |
| 128 | approval-category: "Allow-CI" |
| 129 | approval-value: 2 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 130 | projects: |
| 131 | - project-compare-type: PLAIN |
| 132 | project-pattern: TF-A/trusted-firmware-a |
| 133 | branches: |
| 134 | - branch-compare-type: PLAIN |
| 135 | branch-pattern: integration |
| 136 | override-votes: true |
Fathi Boudra | 0dcfdbe | 2020-12-14 10:16:12 +0100 | [diff] [blame] | 137 | gerrit-build-started-verified-value: 0 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 138 | gerrit-build-successful-verified-value: 1 |
Fathi Boudra | 09d992e | 2020-12-14 10:22:56 +0100 | [diff] [blame] | 139 | gerrit-build-failed-verified-value: 0 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 140 | gerrit-build-unstable-verified-value: -1 |
Fathi Boudra | 0dcfdbe | 2020-12-14 10:16:12 +0100 | [diff] [blame] | 141 | gerrit-build-notbuilt-verified-value: 0 |
| 142 | gerrit-build-started-codereview-value: 0 |
| 143 | gerrit-build-successful-codereview-value: 0 |
| 144 | gerrit-build-failed-codereview-value: 0 |
| 145 | gerrit-build-unstable-codereview-value: -1 |
| 146 | gerrit-build-notbuilt-codereview-value: 0 |
| 147 | failure-message: 'OpenCI: build failed' |
| 148 | successful-message: 'OpenCI: build successful' |
| 149 | unstable-message: 'OpenCI: build unstable' |
| 150 | notbuilt-message: 'OpenCI: no builds executed' |
| 151 | skip-vote: |
| 152 | successful: true |
| 153 | failed: true |
| 154 | unstable: true |
| 155 | notbuilt: true |
| 156 | silent: false |
| 157 | silent-start: false |