Paul Sokolovsky | e0ab23a | 2022-10-18 21:44:32 +0300 | [diff] [blame] | 1 | - 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 Sokolovsky | 8a1dda0 | 2022-10-20 20:20:19 +0300 | [diff] [blame] | 16 | - throttle: |
| 17 | option: category |
| 18 | categories: [eclair] |
| 19 | matrix-builds: false |
| 20 | matrix-configs: true |
Paul Sokolovsky | e0ab23a | 2022-10-18 21:44:32 +0300 | [diff] [blame] | 21 | parameters: |
| 22 | - string: |
| 23 | name: MAKE_TARGET |
| 24 | default: '' |
| 25 | description: | |
| 26 | TF-A make target |
| 27 | - string: |
Paul Sokolovsky | 30e6843 | 2022-10-29 18:51:21 +0300 | [diff] [blame] | 28 | name: DEBUG |
Paul Sokolovsky | 3ad6929 | 2022-10-31 22:48:32 +0300 | [diff] [blame] | 29 | default: '1' |
Paul Sokolovsky | 30e6843 | 2022-10-29 18:51:21 +0300 | [diff] [blame] | 30 | description: | |
| 31 | TF-A make DEBUG setting |
| 32 | - string: |
Paul Sokolovsky | e0ab23a | 2022-10-18 21:44:32 +0300 | [diff] [blame] | 33 | 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 Sokolovsky | 0b88065 | 2022-10-30 09:06:44 +0300 | [diff] [blame] | 49 | name: GERRIT_CHANGE_NUMBER |
| 50 | default: '' |
| 51 | - string: |
| 52 | name: GERRIT_PATCHSET_NUMBER |
| 53 | default: '' |
| 54 | - string: |
Paul Sokolovsky | e0ab23a | 2022-10-18 21:44:32 +0300 | [diff] [blame] | 55 | 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 |
| 93 | wrappers: |
| 94 | - timestamps |
| 95 | - timeout: |
| 96 | timeout: 120 |
| 97 | fail: true |
| 98 | - credentials-binding: |
| 99 | - ssh-user-private-key: |
| 100 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 101 | key-file-variable: CI_BOT_KEY |
| 102 | username-variable: CI_BOT_USERNAME |
| 103 | passphrase-variable: '' |
| 104 | builders: |
| 105 | - shell: | |
| 106 | #!/bin/bash |
| 107 | set -ex |
| 108 | pwd |
| 109 | env | grep GERRIT |
| 110 | git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git |
| 111 | git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_BRANCH} |
| 112 | if [ -n "${GERRIT_REFSPEC}" ]; then |
| 113 | ( |
| 114 | cd $(basename ${GERRIT_PROJECT}) |
| 115 | git fetch https://${GERRIT_HOST}/${GERRIT_PROJECT} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD |
| 116 | ) |
| 117 | fi |
| 118 | (cd trusted-firmware-a; git log --oneline -n5) |
| 119 | detachLicense 3600 |
| 120 | trap "returnLicense || true" EXIT |
| 121 | tf-a-ci-scripts/eclair/analyze_delta.sh ${TF_CONFIG} |
| 122 | returnLicense |
| 123 | tf-a-ci-scripts/eclair/post_gerrit_comment.sh |
| 124 | publishers: |
| 125 | - archive: |
| 126 | artifacts: 'ECLAIR*/**, diff_output/**, misra_delta.txt, *issues_html/**, index.html' |
| 127 | excludes: 'ECLAIR/out/.data/**' |
| 128 | latest-only: false |
| 129 | allow-empty: true |
| 130 | - email: |
| 131 | recipients: 'paul.sokolovsky@linaro.org' |