Manish V Badarkhe | 62a10a4 | 2022-09-28 19:08:44 +0100 | [diff] [blame] | 1 | - job: |
| 2 | name: manishvbarm-tf-a-ci-gateway |
Manish V Badarkhe | 3fafadf | 2023-06-19 12:21:06 +0100 | [diff] [blame] | 3 | node: docker-amd64-tf-a-jammy |
Manish V Badarkhe | 62a10a4 | 2022-09-28 19:08:44 +0100 | [diff] [blame] | 4 | project-type: freestyle |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | defaults: global |
| 8 | description: | |
| 9 | Main job entry point for a Trusted Firmware A (TF-A) CI. |
| 10 | properties: |
| 11 | - build-discarder: |
| 12 | days-to-keep: 15 |
| 13 | - throttle: |
| 14 | option: project |
| 15 | enabled: true |
| 16 | max-per-node: 3 |
| 17 | max-total: 10 |
| 18 | - authorization: |
| 19 | !include: manishvbarm-authorization.yaml.inc |
| 20 | wrappers: |
| 21 | - credentials-binding: |
| 22 | - ssh-user-private-key: |
| 23 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 24 | key-file-variable: CI_BOT_KEY |
| 25 | username-variable: CI_BOT_USERNAME |
| 26 | passphrase-variable: '' |
| 27 | - workspace-cleanup |
| 28 | - timeout: |
| 29 | timeout: 180 |
| 30 | fail: true |
| 31 | - timestamps |
Manish V Badarkhe | e980684 | 2023-01-17 15:27:28 +0000 | [diff] [blame] | 32 | - build-name: |
Manish V Badarkhe | 7fde663 | 2023-01-18 19:01:25 +0000 | [diff] [blame] | 33 | name: '#${BUILD_NUMBER}-${TEST_GROUPS}' |
Manish V Badarkhe | 62a10a4 | 2022-09-28 19:08:44 +0100 | [diff] [blame] | 34 | parameters: |
| 35 | - string: |
| 36 | name: TEST_GROUPS |
| 37 | default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug |
| 38 | description: | |
| 39 | White space separated list of test configs: can be mix of specific |
| 40 | test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and |
| 41 | group names (e.g., <code>l1 l2</code>). |
| 42 | - string: |
| 43 | name: TF_GERRIT_REFSPEC |
| 44 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 45 | description: | |
| 46 | trusted-firmware-a refspec to use. The master branch is used by default. |
| 47 | - string: |
| 48 | name: TFTF_GERRIT_REFSPEC |
| 49 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 50 | description: | |
| 51 | tf-a-tests refspec to use. The master branch is used by default. |
| 52 | - string: |
| 53 | name: SPM_REFSPEC |
| 54 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 55 | description: | |
| 56 | SPM(Hafnium) refspec to use. The master branch is used by default. |
| 57 | - string: |
| 58 | name: CI_REFSPEC |
| 59 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 60 | description: | |
| 61 | tf-a-ci-scripts refspec to use. The master branch is used by default. |
Manish V Badarkhe | 18b3f69 | 2022-10-31 10:48:10 +0000 | [diff] [blame] | 62 | - string: |
Manish V Badarkhe | 3df8cc0 | 2025-03-18 21:32:28 +0000 | [diff] [blame] | 63 | name: RMM_REFSPEC |
| 64 | default: '+refs/heads/main:refs/remotes/origin/main' |
| 65 | description: | |
| 66 | tf-rmm refspec to use. The main branch is used by default. |
| 67 | - string: |
Manish V Badarkhe | 18b3f69 | 2022-10-31 10:48:10 +0000 | [diff] [blame] | 68 | name: JOBS_PROJECT |
| 69 | default: 'next/ci/tf-a-job-configs.git' |
Manish V Badarkhe | 62a10a4 | 2022-09-28 19:08:44 +0100 | [diff] [blame] | 70 | - bool: |
| 71 | name: ENABLE_STATIC_CHECK |
| 72 | default: false |
| 73 | - string: |
| 74 | name: SHARE_FOLDER |
Chris Kay | 4bbc969 | 2025-06-13 15:24:41 +0100 | [diff] [blame] | 75 | default: '/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}' |
Manish V Badarkhe | 62a10a4 | 2022-09-28 19:08:44 +0100 | [diff] [blame] | 76 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 77 | builders: |
| 78 | - shell: |
Manish V Badarkhe | eb00ef2 | 2025-03-18 21:59:30 +0000 | [diff] [blame] | 79 | !include-raw: scripts/clone-manishvb.sh |
Manish V Badarkhe | 62a10a4 | 2022-09-28 19:08:44 +0100 | [diff] [blame] | 80 | - shell: | |
| 81 | #!/bin/bash |
| 82 | set -e |
| 83 | CI_ROOT=${PWD}/tf-a-ci-scripts |
| 84 | export workspace=$PWD |
| 85 | export test_groups=$TEST_GROUPS |
| 86 | $CI_ROOT/script/gen_test_desc.py |
| 87 | cat << EOF > share.param |
| 88 | SHARE_FOLDER=${SHARE_FOLDER} |
| 89 | EOF |
| 90 | - trigger-builds: |
| 91 | - project: |
Manish V Badarkhe | 204bdd2 | 2023-01-16 13:25:37 +0000 | [diff] [blame] | 92 | - tf-a-builder |
Manish V Badarkhe | 62a10a4 | 2022-09-28 19:08:44 +0100 | [diff] [blame] | 93 | block: true |
| 94 | property-file: share.param |
| 95 | current-parameters: true |
| 96 | property-file-fail-on-missing: false |
| 97 | parameter-factories: |
| 98 | - factory: filebuild |
| 99 | file-pattern: '*.testprop' |
| 100 | no-files-found-action: FAIL |
| 101 | publishers: |
| 102 | - postbuildscript: |
| 103 | builders: |
| 104 | - role: SLAVE |
| 105 | build-on: |
| 106 | - SUCCESS |
| 107 | - FAILURE |
| 108 | - UNSTABLE |
| 109 | - ABORTED |
| 110 | - NOT_BUILT |
| 111 | build-steps: |
| 112 | - shell: |- |
| 113 | #!/bin/bash -e |
| 114 | export CI_ROOT=${PWD}/tf-a-ci-scripts |
| 115 | bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh" |
| 116 | - archive: |
| 117 | artifacts: report.json, report.html, merge/outdir/** |
| 118 | - groovy-postbuild: |
| 119 | script: |
| 120 | !include-raw: |
| 121 | - manishvbarm-tf-a-ci-gateway/postbuild.groovy |