blob: b9e06c5736d1463b667e9810f1f599bd42d78a04 [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:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060016 days-to-keep: 14
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050017 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060018 !include: authorization.yaml.inc
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050019 parameters:
20 - string:
21 name: GERRIT_PROJECT
22 default: 'TF-A/trusted-firmware-a'
23 - string:
24 name: GERRIT_BRANCH
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060025 default: 'refs/heads/integration'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050026 - string:
27 name: GERRIT_REFSPEC
Leonardo Sandoval3da340d2021-02-09 14:53:30 -060028 default: '+refs/heads/integration:refs/remotes/origin/integration'
Milosz Wasilewski10438582020-12-03 11:36:21 +000029 - string:
30 name: GERRIT_PATCHSET_NUMBER
31 default: ''
32 - string:
33 name: GERRIT_CHANGE_NUMBER
34 default: ''
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050035 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 Boudra9c8a9452020-12-08 22:16:57 +010045 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050046 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050047 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050048 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000049 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
50 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000051 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000052 QA_SERVER_PROJECT=${JOB_NAME}
53 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050054 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
55 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
56 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
57 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050058 - multijob:
59 condition: COMPLETED
60 name: Build and static checks
61 projects:
62 - kill-phase-on: NEVER
Leonardo Sandoval72efe6a2021-02-12 18:20:05 -060063 name: tf-static-checks
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050064 predefined-parameters: |-
65 TEST_GROUPS=tf-l2-scan-build
66 ENABLE_STATIC_CHECK=true
67 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050068 - multijob:
69 condition: COMPLETED
70 name: Run doc build check
71 projects:
72 - kill-phase-on: NEVER
73 name: tf-ci-gateway
74 predefined-parameters: |
75 TEST_GROUPS=tf-l1-check-docs
76 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050077 - multijob:
78 condition: COMPLETED
79 name: Run build tests
80 projects:
81 - kill-phase-on: NEVER
82 name: tf-ci-gateway
83 predefined-parameters: |
84 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat
85 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050086 - multijob:
87 condition: COMPLETED
88 name: Run boot tests
89 projects:
90 - kill-phase-on: NEVER
91 name: tf-ci-gateway
92 predefined-parameters: |
93 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
94 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050095 triggers:
96 - gerrit:
97 server-name: review.trustedfirmware.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050098 trigger-on:
99 - comment-added-event:
Riku Voipiocdeb3202020-12-03 10:42:58 +0200100 approval-category: "Allow-CI"
101 approval-value: 1
102 projects:
103 - project-compare-type: PLAIN
104 project-pattern: TF-A/trusted-firmware-a
105 branches:
106 - branch-compare-type: PLAIN
107 branch-pattern: integration