blob: 1f17165fc6f8cd35789600271ea84af312e7421f [file] [log] [blame]
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +03001- job:
2 name: tf-a-eclair-daily
Paul Sokolovsky26260792024-01-08 00:50:08 +03003 node: docker-tf-a-eclair-3.13
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +03004 project-type: freestyle
5 concurrent: true
6 disabled: false
7 defaults: global
Paul Sokolovskyd9f65b52024-10-22 13:50:58 +07008 description: |
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +03009 ECLAIR (MISRA compliance) testing of TF-A
10 properties:
11 - build-discarder:
12 days-to-keep: 40
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030013 parameters:
14 - string:
15 name: TF_CONFIG_LIST
16 default: >
17 fvp-aarch32-default
18 fvp-aarch32-enable-runtime-instr
19 fvp-aarch32-rst-to-sp-min
20 fvp-boot-el3-payload
21 fvp-default
22 fvp-enable-runtime-instr
23 fvp-ext-pstate-ea-el3
24 fvp-no-cohmem
25 fvp-opteed
26 fvp-r-default
27 fvp-rst-bl31
28 fvp-tspd
29 fvp-tspd-gicv2-symmetric-model
30 fvp-tspd-irq2el3
31 fvp-tspd-quad-cluster
32 fvp-tspd-tbb-mbedtls
33 fvp-tspd-tsp-async
34 juno-aarch32-rst-to-sp-min
35 juno-aarch32-rst-to-sp-min-enable-runtime-instr
36 juno-default
37 juno-tspd
38 description: |
39 List of TF-A configs to build
40 - string:
41 name: MAKE_TARGET
42 default: ''
43 description: |
44 TF-A make target
45 - string:
46 name: MAKE_JOBS
47 default: '16'
48 description: |
49 --jobs to pass to make, etc.
50 - string:
51 name: DEBUG
52 default: '1'
53 description: |
54 TF-A make DEBUG setting
55 - string:
56 name: GERRIT_HOST
57 default: 'review.trustedfirmware.org'
58 - string:
59 name: GERRIT_PROJECT
60 default: 'TF-A/trusted-firmware-a'
61 description: |
62 Git project to build (also set by Gerrit trigger)
63 - string:
64 name: GERRIT_REFNAME
65 default: 'integration'
66 description: |
67 Git branch to build (also set by Gerrit trigger)
68 - string:
69 name: GERRIT_NEWREV
70 default: ''
71 description: |
72 Git revision to build (also set by Gerrit ref-updated trigger)
73 - string:
74 name: MBEDTLS_URL
Lauren Wehrmeistercec409a2025-04-03 14:34:02 -050075 default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz'
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030076 description: |
77 URL of mbedTLS library to use in build (only for some configurations)
78 - string:
79 name: SHARE_FOLDER
80 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
81 description: 'Folder containing shared repositories for downstream pipeline jobs'
Saheer Babu75aafc92025-02-11 10:04:19 +000082 # triggers:
83 # - timed : 'H 2 * * *'
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030084# - gerrit:
85# silent: true
86# server-name: 'review.trustedfirmware.org'
87# projects:
88# - branches:
89# - branch-compare-type: PLAIN
90# branch-pattern: integration
91# project-compare-type: PLAIN
92# project-pattern: 'TF-A/trusted-firmware-a'
93# trigger-on:
94# - ref-updated-event
95 wrappers:
96 - timestamps
97 - timeout:
Paul Sokolovskyfecb6af2024-08-22 22:05:48 +030098 timeout: 420
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030099 fail: true
100 builders:
101 - shell: |
102 #!/bin/bash
103 set -ex
Paul Sokolovsky4bdd9c12024-08-22 15:19:28 +0300104 export PATH=~/.local/bin:$PATH
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +0300105 pwd
106 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
107 git clone https://git.trustedfirmware.org/ci/tf-ci-scripts.git
108
109 git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_REFNAME}
110 ls -l
111 if [ -n "${GERRIT_NEWREV}" ]; then
112 (cd $(basename ${GERRIT_PROJECT}); git checkout ${GERRIT_NEWREV})
113 else
114 # Checkout last commit from yesterday, to have a stable commit for
115 # multiple builds.
116 (cd $(basename ${GERRIT_PROJECT}); git checkout $(git rev-list -n1 --before="today" HEAD))
117 fi
118 (cd $(basename ${GERRIT_PROJECT}); git log -n1)
119
120 export ECLAIR_CONFIG_DIR=$PWD/tf-a-ci-scripts/eclair
121 . tf-ci-scripts/eclair/utils.sh
122 # TODO
123 #. tf-a-ci-scripts/eclair/utils_tfa.sh
124
Paul Sokolovsky32f71fe2023-11-15 22:12:49 +0300125 . tf-a-ci-scripts/eclair/eclair_vars.sh
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +0300126
127 detachLicense 600
Paul Sokolovskyac20bd52023-11-15 21:05:29 +0300128 trap "returnLicense || true" EXIT
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +0300129
130 export ECLAIR_ANALYSIS=ECLAIR
131 eclair_prepare
132 eclair_analyze tf-a-ci-scripts/eclair/build-tfa-multiple.sh
133 eclair_make_ecd
134 eclair_make_reports
135 eclair_compress_db
136
137 tf-ci-scripts/eclair/analyze_index_html.sh
138 publishers:
139 - archive:
140 artifacts: 'ECLAIR/**, index.html'
141 excludes: 'ECLAIR/out/.data/**'
142 latest-only: false
143 allow-empty: true