blob: f5353e0c4e603fdd9304267a9c60134a5c573e3e [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:
Chris Kaye23eab92021-04-19 15:04:15 +010059 name: Lint commit messages
60 condition: COMPLETED
61 projects:
62 - name: tf-a-commitlint
63 kill-phase-on: NEVER
64 predefined-parameters: |
65 REFSPEC=${GERRIT_REFSPEC}
Chris Kay22e76f22021-04-21 18:03:35 +010066 REFNAME=${GERRIT_PATCHSET_REVISION}
67 REFNAME_BASE=origin/${GERRIT_BRANCH}
Chris Kaye23eab92021-04-19 15:04:15 +010068 - multijob:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050069 condition: COMPLETED
70 name: Build and static checks
71 projects:
72 - kill-phase-on: NEVER
Leonardo Sandoval72efe6a2021-02-12 18:20:05 -060073 name: tf-static-checks
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050074 predefined-parameters: |-
75 TEST_GROUPS=tf-l2-scan-build
76 ENABLE_STATIC_CHECK=true
77 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050078 - multijob:
79 condition: COMPLETED
80 name: Run doc build check
81 projects:
82 - kill-phase-on: NEVER
83 name: tf-ci-gateway
84 predefined-parameters: |
85 TEST_GROUPS=tf-l1-check-docs
86 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050087 - multijob:
88 condition: COMPLETED
89 name: Run build tests
90 projects:
91 - kill-phase-on: NEVER
92 name: tf-ci-gateway
93 predefined-parameters: |
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -060094 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat spm-l1-build-tests
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050095 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050096 - multijob:
97 condition: COMPLETED
98 name: Run boot tests
99 projects:
100 - kill-phase-on: NEVER
101 name: tf-ci-gateway
102 predefined-parameters: |
103 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
104 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500105 triggers:
106 - gerrit:
107 server-name: review.trustedfirmware.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500108 trigger-on:
109 - comment-added-event:
Riku Voipiocdeb3202020-12-03 10:42:58 +0200110 approval-category: "Allow-CI"
111 approval-value: 1
112 projects:
113 - project-compare-type: PLAIN
114 project-pattern: TF-A/trusted-firmware-a
115 branches:
116 - branch-compare-type: PLAIN
117 branch-pattern: integration