blob: 74d1d9ae54932bbc1cf6ee887f147893f2b4b7d3 [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:
Chris Kay675db4f2025-06-24 14:14:34 +010011 - build-discarder:
12 days-to-keep: 40
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030013 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010014 - string:
15 name: TF_CONFIG_LIST
16 default: |
17 fvp-aarch32-default fvp-aarch32-enable-runtime-instr fvp-aarch32-rst-to-sp-min fvp-boot-el3-payload fvp-default fvp-enable-runtime-instr fvp-ext-pstate-ea-el3 fvp-no-cohmem fvp-opteed fvp-r-default fvp-rst-bl31 fvp-tspd fvp-tspd-gicv2-symmetric-model fvp-tspd-irq2el3 fvp-tspd-quad-cluster fvp-tspd-tbb-mbedtls fvp-tspd-tsp-async juno-aarch32-rst-to-sp-min juno-aarch32-rst-to-sp-min-enable-runtime-instr juno-default juno-tspd
18 description: |
19 List of TF-A configs to build
20 - string:
21 name: MAKE_TARGET
22 default: ""
23 description: |
24 TF-A make target
25 - string:
26 name: MAKE_JOBS
27 default: "16"
28 description: |
29 --jobs to pass to make, etc.
30 - string:
31 name: DEBUG
32 default: "1"
33 description: |
34 TF-A make DEBUG setting
35 - string:
36 name: GERRIT_HOST
37 default: review.trustedfirmware.org
38 - string:
39 name: GERRIT_PROJECT
40 default: TF-A/trusted-firmware-a
41 description: |
42 Git project to build (also set by Gerrit trigger)
43 - string:
44 name: GERRIT_REFNAME
45 default: integration
46 description: |
47 Git branch to build (also set by Gerrit trigger)
48 - string:
49 name: GERRIT_NEWREV
50 default: ""
51 description: |
52 Git revision to build (also set by Gerrit ref-updated trigger)
53 - string:
54 name: MBEDTLS_URL
55 default: https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz
56 description: |
57 URL of mbedTLS library to use in build (only for some configurations)
58 - string:
59 name: SHARE_FOLDER
60 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
61 description: Folder containing shared repositories for downstream pipeline jobs
Paul Sokolovsky7146fe72023-09-16 16:07:25 +030062 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +010063 - timed: H 2 * * *
64 # - gerrit:
65 # silent: true
66 # server-name: 'review.trustedfirmware.org'
67 # projects:
68 # - branches:
69 # - branch-compare-type: PLAIN
70 # branch-pattern: integration
71 # project-compare-type: PLAIN
72 # project-pattern: 'TF-A/trusted-firmware-a'
73 # trigger-on:
74 # - ref-updated-event
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030075 wrappers:
Chris Kay675db4f2025-06-24 14:14:34 +010076 - timestamps
77 - timeout:
78 timeout: 420
79 fail: true
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030080 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010081 - shell: |
82 #!/bin/bash
83 set -ex
84 export PATH=~/.local/bin:$PATH
85 pwd
86 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
87 git clone https://git.trustedfirmware.org/ci/tf-ci-scripts.git
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030088
Chris Kay675db4f2025-06-24 14:14:34 +010089 git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_REFNAME}
90 ls -l
91 if [ -n "${GERRIT_NEWREV}" ]; then
92 (cd $(basename ${GERRIT_PROJECT}); git checkout ${GERRIT_NEWREV})
93 else
94 # Checkout last commit from yesterday, to have a stable commit for
95 # multiple builds.
96 (cd $(basename ${GERRIT_PROJECT}); git checkout $(git rev-list -n1 --before="today" HEAD))
97 fi
98 (cd $(basename ${GERRIT_PROJECT}); git log -n1)
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +030099
Chris Kay675db4f2025-06-24 14:14:34 +0100100 export ECLAIR_CONFIG_DIR=$PWD/tf-a-ci-scripts/eclair
101 . tf-ci-scripts/eclair/utils.sh
102 # TODO
103 #. tf-a-ci-scripts/eclair/utils_tfa.sh
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +0300104
Chris Kay675db4f2025-06-24 14:14:34 +0100105 . tf-a-ci-scripts/eclair/eclair_vars.sh
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +0300106
Chris Kay675db4f2025-06-24 14:14:34 +0100107 detachLicense 600
108 trap "returnLicense || true" EXIT
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +0300109
Chris Kay675db4f2025-06-24 14:14:34 +0100110 export ECLAIR_ANALYSIS=ECLAIR
111 eclair_prepare
112 eclair_analyze tf-a-ci-scripts/eclair/build-tfa-multiple.sh
113 eclair_make_ecd
114 eclair_make_reports
115 eclair_compress_db
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +0300116
Chris Kay675db4f2025-06-24 14:14:34 +0100117 tf-ci-scripts/eclair/analyze_index_html.sh
Paul Sokolovsky1516a9d2023-09-16 00:01:23 +0300118 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +0100119 - archive:
120 artifacts: ECLAIR/**, index.html
121 excludes: ECLAIR/out/.data/**
122 latest-only: false
123 allow-empty: true