blob: 2fcf288bd3eb62cde9e7b62b32cb8558652aa79a [file] [log] [blame]
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-gerrit-tforg-l1
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -05003 node: docker-amd64-tf-a-bionic
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05004 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 Sandovald1b6b5a2021-09-13 12:06:26 -050035 - string:
36 name: TF_GERRIT_REFSPEC
37 default: ${GERRIT_REFSPEC}
38 description: 'Parameter only used by the clone script'
39 - string:
40 name: SHARE_FOLDER
41 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
42 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050043 wrappers:
44 - credentials-binding:
45 - ssh-user-private-key:
46 credential-id: TFA_CI_BOT_USER_SSH_KEY
47 key-file-variable: CI_BOT_KEY
48 username-variable: CI_BOT_USERNAME
49 passphrase-variable: ''
50 - workspace-cleanup
51 - timestamps
52 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050053 - shell:
54 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010055 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050056 #!/bin/bash
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050057 set -e
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050058 cat << EOF > env.param
Milosz Wasilewski10438582020-12-03 11:36:21 +000059 GERRIT_PATCHSET_NUMBER=${GERRIT_PATCHSET_NUMBER}
60 GERRIT_CHANGE_NUMBER=${GERRIT_CHANGE_NUMBER}
Milosz Wasilewski204a27e2020-12-10 10:29:45 +000061 GERRIT_HOST=${GERRIT_HOST}
Milosz Wasilewski10438582020-12-03 11:36:21 +000062 QA_SERVER_PROJECT=${JOB_NAME}
63 QA_SERVER_VERSION=${BUILD_NUMBER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050064 TF_GERRIT_PROJECT=${GERRIT_PROJECT}
65 TF_GERRIT_BRANCH=${GERRIT_BRANCH}
66 TF_GERRIT_REFSPEC=${GERRIT_REFSPEC}
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050067 SHARE_FOLDER=${SHARE_FOLDER}
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050068 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050069 - multijob:
Chris Kaye23eab92021-04-19 15:04:15 +010070 name: Lint commit messages
71 condition: COMPLETED
72 projects:
73 - name: tf-a-commitlint
74 kill-phase-on: NEVER
75 predefined-parameters: |
76 REFSPEC=${GERRIT_REFSPEC}
Chris Kay22e76f22021-04-21 18:03:35 +010077 REFNAME=${GERRIT_PATCHSET_REVISION}
78 REFNAME_BASE=origin/${GERRIT_BRANCH}
Chris Kaye23eab92021-04-19 15:04:15 +010079 - multijob:
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050080 condition: COMPLETED
81 name: Build and static checks
82 projects:
83 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -060084 name: tf-a-static-checks
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050085 predefined-parameters: |-
86 TEST_GROUPS=tf-l2-scan-build
87 ENABLE_STATIC_CHECK=true
88 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050089 - multijob:
90 condition: COMPLETED
91 name: Run doc build check
92 projects:
93 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -060094 name: tf-a-ci-gateway
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050095 predefined-parameters: |
96 TEST_GROUPS=tf-l1-check-docs
97 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050098 - multijob:
99 condition: COMPLETED
100 name: Run build tests
101 projects:
102 - kill-phase-on: NEVER
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600103 name: tf-a-ci-gateway
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500104 predefined-parameters: |
Leonardo Sandoval0e0ee892021-02-16 10:39:51 -0600105 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 -0500106 property-file: env.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500107 triggers:
108 - gerrit:
109 server-name: review.trustedfirmware.org
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500110 trigger-on:
111 - comment-added-event:
Riku Voipiocdeb3202020-12-03 10:42:58 +0200112 approval-category: "Allow-CI"
113 approval-value: 1
114 projects:
115 - project-compare-type: PLAIN
116 project-pattern: TF-A/trusted-firmware-a
117 branches:
118 - branch-compare-type: PLAIN
119 branch-pattern: integration
Arthur She06125a42021-10-19 22:58:21 -0700120 override-votes: true
121 gerrit-build-started-verified-value: 0
122 gerrit-build-successful-verified-value: 1
123 gerrit-build-failed-verified-value: -1
124 gerrit-build-unstable-verified-value: -1
125 gerrit-build-notbuilt-verified-value: 0
126 gerrit-build-started-codereview-value: 0
127 gerrit-build-successful-codereview-value: 0
128 gerrit-build-failed-codereview-value: 0
129 gerrit-build-unstable-codereview-value: 0
130 gerrit-build-notbuilt-codereview-value: 0