blob: 3c57368d62d60f87d8603b46cae7822d22455643 [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:
19 anonymous:
20 - job-read
21 - job-extended-read
22 lsandov1:
23 - job-read
24 - job-extended-read
25 - job-build
26 - job-cancel
27 - run-update
28 parameters:
29 - string:
30 name: GERRIT_PROJECT
31 default: 'TF-A/trusted-firmware-a'
32 - string:
33 name: GERRIT_BRANCH
34 default: 'master'
35 - string:
36 name: GERRIT_REFSPEC
37 default: 'refs/heads/master'
38 wrappers:
39 - credentials-binding:
40 - ssh-user-private-key:
41 credential-id: TFA_CI_BOT_USER_SSH_KEY
42 key-file-variable: CI_BOT_KEY
43 username-variable: CI_BOT_USERNAME
44 passphrase-variable: ''
45 - workspace-cleanup
46 - timestamps
47 builders:
48 - shell: |-
49 #!/bin/bash
50
51 set -e
52
53 cat << EOF > env.param
54 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
55 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
56 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
57 EOF
58
59 - 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
69
70 - multijob:
71 condition: COMPLETED
72 name: Run doc build check
73 projects:
74 - kill-phase-on: NEVER
75 name: tf-ci-gateway
76 predefined-parameters: |
77 TEST_GROUPS=tf-l1-check-docs
78 property-file: env.param
79
80 - multijob:
81 condition: COMPLETED
82 name: Run build tests
83 projects:
84 - kill-phase-on: NEVER
85 name: tf-ci-gateway
86 predefined-parameters: |
87 TEST_GROUPS=tf-l1-build-fvp tf-l1-build-juno tf-l1-build-clang tf-l1-build-plat
88 property-file: env.param
89
90 - multijob:
91 condition: COMPLETED
92 name: Run boot tests
93 projects:
94 - kill-phase-on: NEVER
95 name: tf-ci-gateway
96 predefined-parameters: |
97 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
98 property-file: env.param
99
100 triggers:
101 - gerrit:
102 server-name: review.trustedfirmware.org
103 projects:
104 - branches:
105 - branch-compare-type: PLAIN
106 branch-pattern: integration
107 project-compare-type: PLAIN
108 project-pattern: TF-A/trusted-firmware-a
109 trigger-on:
110 - comment-added-event:
111 approval-category: "Allow-CI"
112 approval-value: 1