Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-eclair-daily |
Paul Sokolovsky | 2626079 | 2024-01-08 00:50:08 +0300 | [diff] [blame] | 3 | node: docker-tf-a-eclair-3.13 |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 4 | project-type: freestyle |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | defaults: global |
Paul Sokolovsky | d9f65b5 | 2024-10-22 13:50:58 +0700 | [diff] [blame] | 8 | description: | |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 9 | ECLAIR (MISRA compliance) testing of TF-A |
| 10 | properties: |
| 11 | - build-discarder: |
| 12 | days-to-keep: 40 |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 13 | 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 Wehrmeister | cec409a | 2025-04-03 14:34:02 -0500 | [diff] [blame] | 75 | default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.3.tar.gz' |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 76 | 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 Babu | 75aafc9 | 2025-02-11 10:04:19 +0000 | [diff] [blame] | 82 | # triggers: |
| 83 | # - timed : 'H 2 * * *' |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 84 | # - 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 Sokolovsky | fecb6af | 2024-08-22 22:05:48 +0300 | [diff] [blame] | 98 | timeout: 420 |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 99 | fail: true |
| 100 | builders: |
| 101 | - shell: | |
| 102 | #!/bin/bash |
| 103 | set -ex |
Paul Sokolovsky | 4bdd9c1 | 2024-08-22 15:19:28 +0300 | [diff] [blame] | 104 | export PATH=~/.local/bin:$PATH |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 105 | 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 Sokolovsky | 32f71fe | 2023-11-15 22:12:49 +0300 | [diff] [blame] | 125 | . tf-a-ci-scripts/eclair/eclair_vars.sh |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 126 | |
| 127 | detachLicense 600 |
Paul Sokolovsky | ac20bd5 | 2023-11-15 21:05:29 +0300 | [diff] [blame] | 128 | trap "returnLicense || true" EXIT |
Paul Sokolovsky | 1516a9d | 2023-09-16 00:01:23 +0300 | [diff] [blame] | 129 | |
| 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 |