blob: e58e2ac102000feacf7fb567bddd4b8a83babfb9 [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
Paul Sokolovskycfd10672023-01-23 23:00:29 +070013 artifact-num-to-keep: 80
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +030014 - 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
Paul Sokolovskyc455e9f2023-03-02 15:29:38 +070093 - comment-added-event:
94 approval-category: "Allow-CI"
95 approval-value: 2
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +030096 wrappers:
97 - timestamps
98 - timeout:
Paul Sokolovsky7a037432023-02-20 15:23:52 +070099 timeout: 150
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +0300100 fail: true
101 - credentials-binding:
102 - ssh-user-private-key:
103 credential-id: TFA_CI_BOT_USER_SSH_KEY
104 key-file-variable: CI_BOT_KEY
105 username-variable: CI_BOT_USERNAME
106 passphrase-variable: ''
107 builders:
108 - shell: |
109 #!/bin/bash
110 set -ex
111 pwd
112 env | grep GERRIT
113 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
Paul Sokolovsky5e7cf7f2023-06-30 15:43:34 +0300114 git clone https://git.trustedfirmware.org/ci/tf-ci-scripts.git
115
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +0300116 git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_BRANCH}
117 if [ -n "${GERRIT_REFSPEC}" ]; then
118 (
119 cd $(basename ${GERRIT_PROJECT})
120 git fetch https://${GERRIT_HOST}/${GERRIT_PROJECT} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
121 )
122 fi
123 (cd trusted-firmware-a; git log --oneline -n5)
Paul Sokolovsky5e7cf7f2023-06-30 15:43:34 +0300124
Paul Sokolovsky7a037432023-02-20 15:23:52 +0700125 detachLicense 9000
Paul Sokolovskye0ab23a2022-10-18 21:44:32 +0300126 trap "returnLicense || true" EXIT
127 tf-a-ci-scripts/eclair/analyze_delta.sh ${TF_CONFIG}
128 returnLicense
129 tf-a-ci-scripts/eclair/post_gerrit_comment.sh
130 publishers:
131 - archive:
132 artifacts: 'ECLAIR*/**, diff_output/**, misra_delta.txt, *issues_html/**, index.html'
133 excludes: 'ECLAIR/out/.data/**'
134 latest-only: false
135 allow-empty: true
136 - email:
137 recipients: 'paul.sokolovsky@linaro.org'