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