Paul Sokolovsky | ec66546 | 2023-07-25 22:00:36 +0300 | [diff] [blame^] | 1 | - job: |
| 2 | name: tf-a-lts2.8-tftf-gerrit-tforg-l2 |
| 3 | node: docker-amd64-tf-a-lts2.8-jammy |
| 4 | project-type: multijob |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | description: | |
| 8 | Job that triggers for every TF-A-Tests 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: 14 |
| 17 | - authorization: |
| 18 | !include: authorization.yaml.inc |
| 19 | parameters: |
| 20 | - string: |
| 21 | name: GERRIT_PROJECT |
| 22 | default: 'TF-A/tf-a-tests' |
| 23 | - string: |
| 24 | name: GERRIT_BRANCH |
| 25 | default: 'refs/heads/lts-v2.8' |
| 26 | - string: |
| 27 | name: GERRIT_REFSPEC |
| 28 | default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8' |
| 29 | - string: |
| 30 | name: GERRIT_PATCHSET_NUMBER |
| 31 | default: '' |
| 32 | - string: |
| 33 | name: GERRIT_CHANGE_NUMBER |
| 34 | default: '' |
| 35 | - string: |
| 36 | name: TFTF_GERRIT_REFSPEC |
| 37 | default: ${GERRIT_REFSPEC} |
| 38 | description: 'Parameter only used by the clone script' |
| 39 | - string: |
| 40 | name: SHARE_FOLDER |
| 41 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 42 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 43 | wrappers: |
| 44 | - credentials-binding: |
| 45 | - ssh-user-private-key: |
| 46 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 47 | key-file-variable: CI_BOT_KEY |
| 48 | username-variable: CI_BOT_USERNAME |
| 49 | passphrase-variable: '' |
| 50 | - workspace-cleanup |
| 51 | - timestamps |
| 52 | builders: |
| 53 | - shell: |
| 54 | !include-raw: scripts/clone.sh |
| 55 | - shell: | |
| 56 | #!/bin/bash |
| 57 | set -e |
| 58 | cat << EOF > env.param |
| 59 | GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER} |
| 60 | GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER} |
| 61 | GERRIT_HOST=${GERRIT_HOST} |
| 62 | QA_SERVER_PROJECT=${JOB_NAME} |
| 63 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 64 | TFTF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 65 | TFTF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 66 | TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 67 | SHARE_FOLDER=${SHARE_FOLDER} |
| 68 | EOF |
| 69 | - multijob: |
| 70 | condition: COMPLETED |
| 71 | name: Carry out level 1 tests |
| 72 | projects: |
| 73 | - kill-phase-on: NEVER |
| 74 | name: tf-a-tftf-gerrit-tforg-l1 |
| 75 | current-parameters: true |
| 76 | property-file: env.param |
| 77 | - multijob: |
| 78 | condition: COMPLETED |
| 79 | name: Run Firmware Update Tests |
| 80 | projects: |
| 81 | - kill-phase-on: NEVER |
| 82 | name: tf-a-lts2.8-ci-gateway |
| 83 | predefined-parameters: |- |
| 84 | TEST_GROUPS=tftf-l2-fwu |
| 85 | TFTF_REFSPEC=$GERRIT_REFSPEC |
| 86 | property-file: env.param |
| 87 | - multijob: |
| 88 | condition: COMPLETED |
| 89 | name: Run Level 2 testing of TF-A-Tests |
| 90 | projects: |
| 91 | - kill-phase-on: NEVER |
| 92 | name: tf-a-lts2.8-ci-gateway |
| 93 | predefined-parameters: |- |
| 94 | TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-juno tf-l2-boot-tests-spm-mm tftf-l2-fvp-dynamiq spm-l2-boot-tests |
| 95 | TFTF_REFSPEC=$GERRIT_REFSPEC |
| 96 | property-file: env.param |
| 97 | - multijob: |
| 98 | condition: COMPLETED |
| 99 | name: Run extensive TF-A-Tests |
| 100 | projects: |
| 101 | - kill-phase-on: NEVER |
| 102 | name: tf-a-lts2.8-ci-gateway |
| 103 | predefined-parameters: |- |
| 104 | TEST_GROUPS=tftf-l2-extensive-tests-fvp |
| 105 | TFTF_REFSPEC=$GERRIT_REFSPEC |
| 106 | property-file: env.param |
| 107 | triggers: |
| 108 | - gerrit: |
| 109 | server-name: review.trustedfirmware.org |
| 110 | projects: |
| 111 | - branches: |
| 112 | - branch-compare-type: PLAIN |
| 113 | branch-pattern: lts-v2.8 |
| 114 | project-compare-type: PLAIN |
| 115 | project-pattern: TF-A/tf-a-tests |
| 116 | trigger-on: |
| 117 | - comment-added-event: |
| 118 | approval-category: "Allow-CI" |
| 119 | approval-value: 2 |
| 120 | override-votes: true |
| 121 | gerrit-build-started-verified-value: 0 |
| 122 | gerrit-build-successful-verified-value: 1 |
| 123 | gerrit-build-failed-verified-value: -1 |
| 124 | gerrit-build-unstable-verified-value: -1 |
| 125 | gerrit-build-notbuilt-verified-value: 0 |
| 126 | gerrit-build-started-codereview-value: 0 |
| 127 | gerrit-build-successful-codereview-value: 0 |
| 128 | gerrit-build-failed-codereview-value: 0 |
| 129 | gerrit-build-unstable-codereview-value: 0 |
| 130 | gerrit-build-notbuilt-codereview-value: 0 |