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: |
Leonardo Sandoval | a4feb55 | 2021-03-02 12:10:21 -0600 | [diff] [blame] | 16 | days-to-keep: 14 |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 17 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame] | 18 | !include: authorization.yaml.inc |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -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 | 7bc39d7 | 2020-10-12 17:11:03 -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 | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 35 | wrappers: |
| 36 | - credentials-binding: |
| 37 | - ssh-user-private-key: |
| 38 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 39 | key-file-variable: CI_BOT_KEY |
| 40 | username-variable: CI_BOT_USERNAME |
| 41 | passphrase-variable: '' |
| 42 | - workspace-cleanup |
| 43 | - timestamps |
| 44 | builders: |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame] | 45 | - shell: | |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 46 | #!/bin/bash |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 47 | set -e |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 48 | cat << EOF > env.param |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 49 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 50 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
Milosz Wasilewski | 204a27e | 2020-12-10 10:29:45 +0000 | [diff] [blame] | 51 | GERRIT_HOST=${GERRIT_HOST} |
Milosz Wasilewski | 1043858 | 2020-12-03 11:36:21 +0000 | [diff] [blame] | 52 | QA_SERVER_PROJECT=${JOB_NAME} |
| 53 | QA_SERVER_VERSION=${BUILD_NUMBER} |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 54 | GERRIT_PROJECT=${GERRIT_PROJECT} |
| 55 | GERRIT_BRANCH=${GERRIT_BRANCH} |
| 56 | GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 57 | EOF |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 58 | - multijob: |
| 59 | condition: COMPLETED |
| 60 | name: Carry out level 1 tests |
| 61 | projects: |
| 62 | - kill-phase-on: NEVER |
| 63 | name: tf-tftf-gerrit-tforg-l1 |
| 64 | current-parameters: true |
| 65 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 66 | - multijob: |
| 67 | condition: COMPLETED |
| 68 | name: Build Trusted Firmware |
| 69 | projects: |
| 70 | - kill-phase-on: NEVER |
| 71 | name: tf-ci-gateway |
| 72 | predefined-parameters: | |
| 73 | TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno |
| 74 | TF_REFSPEC=$GERRIT_REFSPEC |
| 75 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 76 | - multijob: |
| 77 | condition: COMPLETED |
| 78 | name: TFTF tests |
| 79 | projects: |
| 80 | - kill-phase-on: NEVER |
| 81 | name: tf-ci-gateway |
| 82 | predefined-parameters: | |
Leonardo Sandoval | 0b9ee85 | 2021-02-12 18:27:37 -0600 | [diff] [blame] | 83 | 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] | 84 | TF_REFSPEC=$GERRIT_REFSPEC |
| 85 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 86 | - multijob: |
| 87 | condition: COMPLETED |
| 88 | name: Boot up to the Linux shell prompt |
| 89 | projects: |
| 90 | - kill-phase-on: NEVER |
| 91 | name: tf-ci-gateway |
| 92 | predefined-parameters: | |
Leonardo Sandoval | 0e0ee89 | 2021-02-16 10:39:51 -0600 | [diff] [blame^] | 93 | 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 spm-l2-boot-tests |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 94 | TF_REFSPEC=$GERRIT_REFSPEC |
| 95 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 96 | - multijob: |
| 97 | condition: COMPLETED |
| 98 | name: Coverity Scan |
| 99 | projects: |
| 100 | - kill-phase-on: NEVER |
| 101 | name: tf-ci-gateway |
| 102 | predefined-parameters: | |
| 103 | TEST_GROUPS=tf-l2-coverity-misra |
| 104 | TF_REFSPEC=$GERRIT_REFSPEC |
| 105 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 106 | - conditional-step: |
| 107 | condition-command: |- |
| 108 | [ "$NOMINATION_FILE" ] |
| 109 | condition-kind: shell |
| 110 | on-evaluation-failure: dont-run |
| 111 | steps: |
| 112 | - multijob: |
| 113 | condition: COMPLETED |
| 114 | name: Nominated tests |
| 115 | projects: |
| 116 | - kill-phase-on: NEVER |
| 117 | name: tf-ci-gateway |
| 118 | predefined-parameters: | |
| 119 | TEST_GROUPS=@$NOMINATION_FILE |
| 120 | TF_REFSPEC=$GERRIT_REFSPEC |
| 121 | property-file: env.param |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 122 | triggers: |
| 123 | - gerrit: |
| 124 | server-name: review.trustedfirmware.org |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 125 | trigger-on: |
| 126 | - comment-added-event: |
| 127 | approval-category: "Allow-CI" |
| 128 | approval-value: 2 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 129 | projects: |
| 130 | - project-compare-type: PLAIN |
| 131 | project-pattern: TF-A/trusted-firmware-a |
| 132 | branches: |
| 133 | - branch-compare-type: PLAIN |
| 134 | branch-pattern: integration |
| 135 | override-votes: true |
Fathi Boudra | 0dcfdbe | 2020-12-14 10:16:12 +0100 | [diff] [blame] | 136 | gerrit-build-started-verified-value: 0 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 137 | gerrit-build-successful-verified-value: 1 |
Fathi Boudra | 09d992e | 2020-12-14 10:22:56 +0100 | [diff] [blame] | 138 | gerrit-build-failed-verified-value: 0 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 139 | gerrit-build-unstable-verified-value: -1 |
Fathi Boudra | 0dcfdbe | 2020-12-14 10:16:12 +0100 | [diff] [blame] | 140 | gerrit-build-notbuilt-verified-value: 0 |
| 141 | gerrit-build-started-codereview-value: 0 |
| 142 | gerrit-build-successful-codereview-value: 0 |
| 143 | gerrit-build-failed-codereview-value: 0 |
| 144 | gerrit-build-unstable-codereview-value: -1 |
| 145 | gerrit-build-notbuilt-codereview-value: 0 |
| 146 | failure-message: 'OpenCI: build failed' |
| 147 | successful-message: 'OpenCI: build successful' |
| 148 | unstable-message: 'OpenCI: build unstable' |
| 149 | notbuilt-message: 'OpenCI: no builds executed' |
| 150 | skip-vote: |
| 151 | successful: true |
| 152 | failed: true |
| 153 | unstable: true |
| 154 | notbuilt: true |
| 155 | silent: false |
| 156 | silent-start: false |