blob: 25bb7b9cbc438d33c57af8617e1737ad42063cda [file] [log] [blame]
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05001- job:
2 name: tf-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 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:
16 days-to-keep: 180
17 num-to-keep: 180
18 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060019 !include: authorization.yaml.inc
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050020 parameters:
21 - string:
22 name: GERRIT_PROJECT
23 default: 'TF-A/trusted-firmware-a'
24 - string:
25 name: GERRIT_BRANCH
26 default: 'master'
27 - string:
28 name: GERRIT_REFSPEC
29 default: 'refs/heads/master'
Milosz Wasilewski10438582020-12-03 11:36:21 +000030 - string:
31 name: GERRIT_PATCHSET_NUMBER
32 default: ''
33 - string:
34 name: GERRIT_CHANGE_NUMBER
35 default: ''
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050036 wrappers:
37 - credentials-binding:
38 - ssh-user-private-key:
39 credential-id: TFA_CI_BOT_USER_SSH_KEY
40 key-file-variable: CI_BOT_KEY
41 username-variable: CI_BOT_USERNAME
42 passphrase-variable: ''
43 - workspace-cleanup
44 - timestamps
45 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010046 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050047 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050048 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050049 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000050 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
51 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000052 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000053 QA_SERVER_PROJECT=${JOB_NAME}
54 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050055 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
56 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
57 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
58 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050059 - multijob:
60 condition: COMPLETED
61 name: Build and static checks
62 projects:
63 - kill-phase-on: NEVER
64 name: tf-ci-gateway
65 predefined-parameters: |-
66 TEST_GROUPS=tf-l2-scan-build
67 ENABLE_STATIC_CHECK=true
68 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050069 - multijob:
70 condition: COMPLETED
71 name: Run doc build check
72 projects:
73 - kill-phase-on: NEVER
74 name: tf-ci-gateway
75 predefined-parameters: |
76 TEST_GROUPS=tf-l1-check-docs
77 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050078 - multijob:
79 condition: COMPLETED
80 name: Run build tests
81 projects:
82 - kill-phase-on: NEVER
83 name: tf-ci-gateway
84 predefined-parameters: |
85 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat
86 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050087 - multijob:
88 condition: COMPLETED
89 name: Run boot tests
90 projects:
91 - kill-phase-on: NEVER
92 name: tf-ci-gateway
93 predefined-parameters: |
94 TEST_GROUPS=tf-l1-boot-tests-aarch32 tf-l1-boot-tests-bl2_el3 tf-l1-boot-tests-cortex tf-l1-boot-tests-foundation tf-l1-boot-tests-gicv2 tf-l1-boot-tests-juno tf-l1-boot-tests-misc
95 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050096 triggers:
97 - gerrit:
98 server-name: review.trustedfirmware.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050099 trigger-on:
100 - comment-added-event:
Riku Voipiocdeb3202020-12-03 10:42:58 +0200101 approval-category: "Allow-CI"
102 approval-value: 1
103 projects:
104 - project-compare-type: PLAIN
105 project-pattern: TF-A/trusted-firmware-a
106 branches:
107 - branch-compare-type: PLAIN
108 branch-pattern: integration