blob: 790d6ae0c70a85338f84543658f220ad95e4a5e8 [file] [log] [blame]
Leonardo Sandoval925329b2020-10-13 16:07:34 -05001- 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:
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/tf-a-tests'
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:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010048 - shell: |
Leonardo Sandoval925329b2020-10-13 16:07:34 -050049 #!/bin/bash
50
51 set -e
52
53 cat << EOF > env.param
54 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
55 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
56 TFTF_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 REPO_UNDER_STATIC_CHECK=tf-a-tests
69 property-file: env.param
70
71 - multijob:
72 condition: COMPLETED
73 name: Run doc build check
74 projects:
75 - kill-phase-on: NEVER
76 name: tf-ci-gateway
77 predefined-parameters: |
78 TEST_GROUPS=tftf-l1-check-docs
79 property-file: env.param
80
81 - multijob:
82 condition: COMPLETED
83 name: Build TF-A-Tests
84 projects:
85 - kill-phase-on: NEVER
86 name: tf-ci-gateway
87 predefined-parameters: |
88 TEST_GROUPS=tftf-l1-build
89 property-file: env.param
90
91 - multijob:
92 condition: COMPLETED
93 name: Basic TF-A-Tests test cases
94 projects:
95 - kill-phase-on: NEVER
96 name: tf-ci-gateway
97 predefined-parameters: |
98 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno
99 property-file: env.param
100
101 triggers:
102 - gerrit:
103 server-name: review.trustedfirmware.org
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500104 trigger-on:
105 - comment-added-event:
Riku Voipiocb3356b2020-12-03 10:33:23 +0200106 approval-category: "Allow-CI"
107 approval-value: 1
108 projects:
109 - project-compare-type: PLAIN
110 project-pattern: TF-A/tf-a-tests
111 branches:
112 - branch-compare-type: PLAIN
113 branch-pattern: master