blob: 8d2b4426f5666b82466534d91e6196274aa1796c [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
29 default: '0'
30 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:
49 name: MBEDTLS_URL
50 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.28.0.tar.gz'
51 description: |
52 URL of mbedTLS library to use in build (only for some configurations)
53 - string:
54 name: SHARE_FOLDER
55 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
56 description: 'Folder containing shared repositories for downstream pipeline jobs'
57 axes:
58 - axis:
59 type: slave
60 name: label
61 values:
62 - docker-tf-a-eclair
63 - axis:
64 type: user-defined
65 name: TF_CONFIG
66 values:
67 - fvp-default
68 triggers:
69 - gerrit:
70 silent: true
71 server-name: 'review.trustedfirmware.org'
72 projects:
73 - branches:
74 - branch-compare-type: PLAIN
75 branch-pattern: integration
76 project-compare-type: PLAIN
77 project-pattern: 'TF-A/trusted-firmware-a'
78 - branches:
79 - branch-compare-type: PLAIN
80 branch-pattern: integration
81 project-compare-type: PLAIN
82 project-pattern: 'sandbox/pfalcon/trusted-firmware-a'
83 trigger-on:
84 - comment-added-event:
85 approval-category: "Allow-CI"
86 approval-value: 1
87 wrappers:
88 - timestamps
89 - timeout:
90 timeout: 120
91 fail: true
92 - credentials-binding:
93 - ssh-user-private-key:
94 credential-id: TFA_CI_BOT_USER_SSH_KEY
95 key-file-variable: CI_BOT_KEY
96 username-variable: CI_BOT_USERNAME
97 passphrase-variable: ''
98 builders:
99 - shell: |
100 #!/bin/bash
101 set -ex
102 pwd
103 env | grep GERRIT
104 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
105 git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_BRANCH}
106 if [ -n "${GERRIT_REFSPEC}" ]; then
107 (
108 cd $(basename ${GERRIT_PROJECT})
109 git fetch https://${GERRIT_HOST}/${GERRIT_PROJECT} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
110 )
111 fi
112 (cd trusted-firmware-a; git log --oneline -n5)
113 detachLicense 3600
114 trap "returnLicense || true" EXIT
115 tf-a-ci-scripts/eclair/analyze_delta.sh ${TF_CONFIG}
116 returnLicense
117 tf-a-ci-scripts/eclair/post_gerrit_comment.sh
118 publishers:
119 - archive:
120 artifacts: 'ECLAIR*/**, diff_output/**, misra_delta.txt, *issues_html/**, index.html'
121 excludes: 'ECLAIR/out/.data/**'
122 latest-only: false
123 allow-empty: true
124 - email:
125 recipients: 'paul.sokolovsky@linaro.org'