blob: 0f22bd7e313e52fc7f6c2e92ef4801fb5e77bb80 [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'
Milosz Wasilewski10438582020-12-03 11:36:21 +000038 - string:
39 name: GERRIT_PATCHSET_NUMBER
40 default: ''
41 - string:
42 name: GERRIT_CHANGE_NUMBER
43 default: ''
Leonardo Sandoval925329b2020-10-13 16:07:34 -050044 wrappers:
45 - credentials-binding:
46 - ssh-user-private-key:
47 credential-id: TFA_CI_BOT_USER_SSH_KEY
48 key-file-variable: CI_BOT_KEY
49 username-variable: CI_BOT_USERNAME
50 passphrase-variable: ''
51 - workspace-cleanup
52 - timestamps
53 builders:
Fathi Boudra9c8a9452020-12-08 22:16:57 +010054 - shell: |
Leonardo Sandoval925329b2020-10-13 16:07:34 -050055 #!/bin/bash
56
57 set -e
58
59 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000060 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
61 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
62 QA_SERVER_PROJECT=${JOB_NAME}
63 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandoval925329b2020-10-13 16:07:34 -050064 TFTF_GERRIT_PROJECT=${GERRIT_PROJECT}
65 TFTF_GERRIT_BRANCH=${GERRIT_BRANCH}
66 TFTF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
67 EOF
68
69 - multijob:
70 condition: COMPLETED
71 name: Build and static checks
72 projects:
73 - kill-phase-on: NEVER
74 name: tf-ci-gateway
75 predefined-parameters: |-
76 TEST_GROUPS=tf-l2-scan-build
77 ENABLE_STATIC_CHECK=true
78 REPO_UNDER_STATIC_CHECK=tf-a-tests
79 property-file: env.param
80
81 - multijob:
82 condition: COMPLETED
83 name: Run doc build check
84 projects:
85 - kill-phase-on: NEVER
86 name: tf-ci-gateway
87 predefined-parameters: |
88 TEST_GROUPS=tftf-l1-check-docs
89 property-file: env.param
90
91 - multijob:
92 condition: COMPLETED
93 name: Build TF-A-Tests
94 projects:
95 - kill-phase-on: NEVER
96 name: tf-ci-gateway
97 predefined-parameters: |
98 TEST_GROUPS=tftf-l1-build
99 property-file: env.param
100
101 - multijob:
102 condition: COMPLETED
103 name: Basic TF-A-Tests test cases
104 projects:
105 - kill-phase-on: NEVER
106 name: tf-ci-gateway
107 predefined-parameters: |
108 TEST_GROUPS=tftf-l1-fvp tftf-l1-juno
109 property-file: env.param
110
111 triggers:
112 - gerrit:
113 server-name: review.trustedfirmware.org
Leonardo Sandoval925329b2020-10-13 16:07:34 -0500114 trigger-on:
115 - comment-added-event:
Riku Voipiocb3356b2020-12-03 10:33:23 +0200116 approval-category: "Allow-CI"
117 approval-value: 1
118 projects:
119 - project-compare-type: PLAIN
120 project-pattern: TF-A/tf-a-tests
121 branches:
122 - branch-compare-type: PLAIN
123 branch-pattern: master