blob: 0b3bee5be0ae489f10f486ba12f243df312f1f59 [file] [log] [blame]
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +03001- job:
2 name: tf-a-eclair-delta
3 project-type: matrix
4 concurrent: true
5 disabled: false
6 defaults: global
7 Description: |
8 ECLAIR (MISRA compliance) testing of TF-A patches
9 properties:
10 - build-discarder:
11 days-to-keep: 45
12 num-to-keep: 200
13 artifact-num-to-keep: 100
14 - authorization:
15 !include: authorization.yaml.inc
Paul Sokolovsky8a1dda02022-10-20 20:20:19 +030016 - throttle:
17 option: category
18 categories: [eclair]
19 matrix-builds: false
20 matrix-configs: true
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +030021 parameters:
22 - string:
23 name: MAKE_TARGET
24 default: ''
25 description: |
26 TF-A make target
27 - string:
Paul Sokolovsky30e68432022-10-29 18:51:21 +030028 name: DEBUG
Paul Sokolovsky3ad69292022-10-31 22:48:32 +030029 default: '1'
Paul Sokolovsky30e68432022-10-29 18:51:21 +030030 description: |
31 TF-A make DEBUG setting
32 - string:
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +030033 name: GERRIT_HOST
34 default: 'review.trustedfirmware.org'
35 - string:
36 name: GERRIT_PROJECT
37 default: 'TF-A/trusted-firmware-a'
38 description: |
39 Git project to build (also set by Gerrit trigger)
40 - string:
41 name: GERRIT_BRANCH
42 default: 'integration'
43 description: |
44 Git branch to build (also set by Gerrit trigger)
45 - string:
46 name: GERRIT_REFSPEC
47 default: ''
48 - string:
Paul Sokolovsky0b880652022-10-30 09:06:44 +030049 name: GERRIT_CHANGE_NUMBER
50 default: ''
51 - string:
52 name: GERRIT_PATCHSET_NUMBER
53 default: ''
54 - string:
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +030055 name: MBEDTLS_URL
56 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.28.0.tar.gz'
57 description: |
58 URL of mbedTLS library to use in build (only for some configurations)
59 - string:
60 name: SHARE_FOLDER
61 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
62 description: 'Folder containing shared repositories for downstream pipeline jobs'
63 axes:
64 - axis:
65 type: slave
66 name: label
67 values:
68 - docker-tf-a-eclair
69 - axis:
70 type: user-defined
71 name: TF_CONFIG
72 values:
73 - fvp-default
74 triggers:
75 - gerrit:
76 silent: true
77 server-name: 'review.trustedfirmware.org'
78 projects:
79 - branches:
80 - branch-compare-type: PLAIN
81 branch-pattern: integration
82 project-compare-type: PLAIN
83 project-pattern: 'TF-A/trusted-firmware-a'
84 - branches:
85 - branch-compare-type: PLAIN
86 branch-pattern: integration
87 project-compare-type: PLAIN
88 project-pattern: 'sandbox/pfalcon/trusted-firmware-a'
89 trigger-on:
90 - comment-added-event:
91 approval-category: "Allow-CI"
92 approval-value: 1
93 wrappers:
94 - timestamps
95 - timeout:
96 timeout: 120
97 fail: true
98 - credentials-binding:
99 - ssh-user-private-key:
100 credential-id: TFA_CI_BOT_USER_SSH_KEY
101 key-file-variable: CI_BOT_KEY
102 username-variable: CI_BOT_USERNAME
103 passphrase-variable: ''
104 builders:
105 - shell: |
106 #!/bin/bash
107 set -ex
108 pwd
109 env | grep GERRIT
110 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
111 git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_BRANCH}
112 if [ -n "${GERRIT_REFSPEC}" ]; then
113 (
114 cd $(basename ${GERRIT_PROJECT})
115 git fetch https://${GERRIT_HOST}/${GERRIT_PROJECT} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
116 )
117 fi
118 (cd trusted-firmware-a; git log --oneline -n5)
119 detachLicense 3600
120 trap "returnLicense || true" EXIT
121 tf-a-ci-scripts/eclair/analyze_delta.sh ${TF_CONFIG}
122 returnLicense
123 tf-a-ci-scripts/eclair/post_gerrit_comment.sh
124 publishers:
125 - archive:
126 artifacts: 'ECLAIR*/**, diff_output/**, misra_delta.txt, *issues_html/**, index.html'
127 excludes: 'ECLAIR/out/.data/**'
128 latest-only: false
129 allow-empty: true
130 - email:
131 recipients: 'paul.sokolovsky@linaro.org'