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} |
| 62 | QA_SERVER_PROJECT=${JOB_NAME} |
| 63 | QA_SERVER_VERSION=${BUILD_NUMBER} |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 64 | GERRIT_PROJECT=${GERRIT_PROJECT} |
| 65 | GERRIT_BRANCH=${GERRIT_BRANCH} |
| 66 | GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 67 | EOF |
| 68 | |
| 69 | - multijob: |
| 70 | condition: COMPLETED |
| 71 | name: Carry out level 1 tests |
| 72 | projects: |
| 73 | - kill-phase-on: NEVER |
| 74 | name: tf-tftf-gerrit-tforg-l1 |
| 75 | current-parameters: true |
| 76 | property-file: env.param |
| 77 | |
| 78 | - multijob: |
| 79 | condition: COMPLETED |
| 80 | name: Build Trusted Firmware |
| 81 | projects: |
| 82 | - kill-phase-on: NEVER |
| 83 | name: tf-ci-gateway |
| 84 | predefined-parameters: | |
| 85 | TEST_GROUPS=tf-l2-build-fvp tf-l2-build-juno |
| 86 | TF_REFSPEC=$GERRIT_REFSPEC |
| 87 | property-file: env.param |
| 88 | |
| 89 | - multijob: |
| 90 | condition: COMPLETED |
| 91 | name: TFTF tests |
| 92 | projects: |
| 93 | - kill-phase-on: NEVER |
| 94 | name: tf-ci-gateway |
| 95 | predefined-parameters: | |
| 96 | TEST_GROUPS=tftf-l1-fvp tftf-l1-spm tftf-l1-juno tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq tftf-l2-fwu |
| 97 | TF_REFSPEC=$GERRIT_REFSPEC |
| 98 | property-file: env.param |
| 99 | |
| 100 | - multijob: |
| 101 | condition: COMPLETED |
| 102 | name: Boot up to the Linux shell prompt |
| 103 | projects: |
| 104 | - kill-phase-on: NEVER |
| 105 | name: tf-ci-gateway |
| 106 | predefined-parameters: | |
| 107 | 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 |
| 108 | TF_REFSPEC=$GERRIT_REFSPEC |
| 109 | property-file: env.param |
| 110 | |
| 111 | - multijob: |
| 112 | condition: COMPLETED |
| 113 | name: Coverity Scan |
| 114 | projects: |
| 115 | - kill-phase-on: NEVER |
| 116 | name: tf-ci-gateway |
| 117 | predefined-parameters: | |
| 118 | TEST_GROUPS=tf-l2-coverity-misra |
| 119 | TF_REFSPEC=$GERRIT_REFSPEC |
| 120 | property-file: env.param |
| 121 | |
| 122 | - conditional-step: |
| 123 | condition-command: |- |
| 124 | [ "$NOMINATION_FILE" ] |
| 125 | condition-kind: shell |
| 126 | on-evaluation-failure: dont-run |
| 127 | steps: |
| 128 | - multijob: |
| 129 | condition: COMPLETED |
| 130 | name: Nominated tests |
| 131 | projects: |
| 132 | - kill-phase-on: NEVER |
| 133 | name: tf-ci-gateway |
| 134 | predefined-parameters: | |
| 135 | TEST_GROUPS=@$NOMINATION_FILE |
| 136 | TF_REFSPEC=$GERRIT_REFSPEC |
| 137 | property-file: env.param |
| 138 | |
| 139 | triggers: |
| 140 | - gerrit: |
| 141 | server-name: review.trustedfirmware.org |
Leonardo Sandoval | 7bc39d7 | 2020-10-12 17:11:03 -0500 | [diff] [blame] | 142 | trigger-on: |
| 143 | - comment-added-event: |
| 144 | approval-category: "Allow-CI" |
| 145 | approval-value: 2 |
Riku Voipio | cfaf87d | 2020-12-03 10:23:16 +0200 | [diff] [blame] | 146 | projects: |
| 147 | - project-compare-type: PLAIN |
| 148 | project-pattern: TF-A/trusted-firmware-a |
| 149 | branches: |
| 150 | - branch-compare-type: PLAIN |
| 151 | branch-pattern: integration |
| 152 | override-votes: true |
| 153 | gerrit-build-successful-verified-value: 1 |
| 154 | gerrit-build-failed-verified-value: -1 |
| 155 | gerrit-build-unstable-verified-value: -1 |
| 156 | approval-value: 1 |