Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-tftf-gerrit-tforg-l1 |
| 3 | node: master |
| 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+1 |
| 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 | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 17 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame] | 18 | !include: authorization.yaml.inc |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 19 | parameters: |
| 20 | - string: |
| 21 | name: GERRIT_PROJECT |
| 22 | default: 'TF-A/tf-a-tests' |
| 23 | - string: |
| 24 | name: GERRIT_BRANCH |
Leonardo Sandoval | 3da340d | 2021-02-09 14:53:30 -0600 | [diff] [blame] | 25 | default: 'refs/heads/master' |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -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/master:refs/remotes/origin/master' |
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 | 925329b | 2020-10-13 16:07:34 -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 | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 46 | #!/bin/bash |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 47 | set -e |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -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 | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 54 | TFTF_GERRIT_PROJECT=${GERRIT_PROJECT} |
| 55 | TFTF_GERRIT_BRANCH=${GERRIT_BRANCH} |
| 56 | TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC} |
| 57 | EOF |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 58 | - multijob: |
| 59 | condition: COMPLETED |
| 60 | name: Build and static checks |
| 61 | projects: |
| 62 | - kill-phase-on: NEVER |
Leonardo Sandoval | 4605bc6 | 2021-03-19 10:48:01 -0600 | [diff] [blame] | 63 | name: tf-static-checks |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 64 | predefined-parameters: |- |
Leonardo Sandoval | 4605bc6 | 2021-03-19 10:48:01 -0600 | [diff] [blame] | 65 | REPO_UNDER_TEST=tf-a-tests |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 66 | property-file: env.param |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 67 | - multijob: |
| 68 | condition: COMPLETED |
| 69 | name: Run doc build check |
| 70 | projects: |
| 71 | - kill-phase-on: NEVER |
| 72 | name: tf-ci-gateway |
| 73 | predefined-parameters: | |
| 74 | TEST_GROUPS=tftf-l1-check-docs |
| 75 | property-file: env.param |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 76 | - multijob: |
| 77 | condition: COMPLETED |
| 78 | name: Build TF-A-Tests |
| 79 | projects: |
| 80 | - kill-phase-on: NEVER |
| 81 | name: tf-ci-gateway |
| 82 | predefined-parameters: | |
| 83 | TEST_GROUPS=tftf-l1-build |
| 84 | property-file: env.param |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 85 | - multijob: |
| 86 | condition: COMPLETED |
| 87 | name: Basic TF-A-Tests test cases |
| 88 | projects: |
| 89 | - kill-phase-on: NEVER |
| 90 | name: tf-ci-gateway |
| 91 | predefined-parameters: | |
| 92 | TEST_GROUPS=tftf-l1-fvp tftf-l1-juno |
| 93 | property-file: env.param |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 94 | triggers: |
| 95 | - gerrit: |
| 96 | server-name: review.trustedfirmware.org |
Leonardo Sandoval | 925329b | 2020-10-13 16:07:34 -0500 | [diff] [blame] | 97 | trigger-on: |
| 98 | - comment-added-event: |
Riku Voipio | cb3356b | 2020-12-03 10:33:23 +0200 | [diff] [blame] | 99 | approval-category: "Allow-CI" |
| 100 | approval-value: 1 |
| 101 | projects: |
| 102 | - project-compare-type: PLAIN |
| 103 | project-pattern: TF-A/tf-a-tests |
| 104 | branches: |
| 105 | - branch-compare-type: PLAIN |
| 106 | branch-pattern: master |