Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 1 | - job: |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 2 | name: tf-a-ci-gateway |
Leonardo Sandoval | b196166 | 2021-02-02 09:29:27 -0600 | [diff] [blame] | 3 | node: docker-amd64-tf-a-bionic |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [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: |
Benjamin Copeland | 12a152f | 2022-03-18 13:16:44 +0000 | [diff] [blame] | 12 | days-to-keep: 15 |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 13 | - throttle: |
| 14 | option: project |
| 15 | enabled: true |
| 16 | max-per-node: 3 |
| 17 | max-total: 10 |
| 18 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame] | 19 | !include: authorization.yaml.inc |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 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 |
| 32 | parameters: |
| 33 | - string: |
| 34 | name: TEST_GROUPS |
| 35 | default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug |
| 36 | description: | |
| 37 | White space separated list of test configs: can be mix of specific |
| 38 | test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and |
| 39 | group names (e.g., <code>l1 l2</code>). |
Zelalem Aweke | e8801df | 2021-10-25 13:41:44 -0500 | [diff] [blame] | 40 | - string: |
| 41 | name: TF_GERRIT_REFSPEC |
| 42 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 43 | description: | |
| 44 | trusted-firmware-a refspec to use. The master branch is used by default. |
| 45 | - string: |
| 46 | name: TFTF_GERRIT_REFSPEC |
| 47 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 48 | description: | |
| 49 | tf-a-tests refspec to use. The master branch is used by default. |
| 50 | - string: |
Zelalem Aweke | 7f8b8b2 | 2021-10-28 13:11:17 -0500 | [diff] [blame] | 51 | name: SPM_REFSPEC |
| 52 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 53 | description: | |
| 54 | SPM(Hafnium) refspec to use. The master branch is used by default. |
| 55 | - string: |
Zelalem Aweke | e8801df | 2021-10-25 13:41:44 -0500 | [diff] [blame] | 56 | name: CI_REFSPEC |
| 57 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 58 | description: | |
| 59 | tf-a-ci-scripts refspec to use. The master branch is used by default. |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 60 | - bool: |
| 61 | name: ENABLE_STATIC_CHECK |
| 62 | default: false |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 63 | - string: |
| 64 | name: SHARE_FOLDER |
| 65 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 66 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 67 | builders: |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 68 | - shell: |
| 69 | !include-raw: scripts/clone.sh |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame] | 70 | - shell: | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 71 | #!/bin/bash |
| 72 | set -e |
| 73 | CI_ROOT=${PWD}/tf-a-ci-scripts |
| 74 | export workspace=$PWD |
| 75 | export test_groups=$TEST_GROUPS |
| 76 | $CI_ROOT/script/gen_test_desc.py |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 77 | cat << EOF > share.param |
| 78 | SHARE_FOLDER=${SHARE_FOLDER} |
| 79 | EOF |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 80 | - trigger-builds: |
| 81 | - project: |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 82 | - tf-a-builder |
| 83 | block: true |
Leonardo Sandoval | d1b6b5a | 2021-09-13 12:06:26 -0500 | [diff] [blame] | 84 | property-file: share.param |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 85 | current-parameters: true |
| 86 | property-file-fail-on-missing: false |
| 87 | parameter-factories: |
Paul Sokolovsky | 7be2e05 | 2021-11-08 14:45:01 +0300 | [diff] [blame] | 88 | - factory: filebuild |
| 89 | file-pattern: '*.testprop' |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 90 | no-files-found-action: FAIL |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 91 | publishers: |
| 92 | - postbuildscript: |
| 93 | builders: |
Leonardo Sandoval | b196166 | 2021-02-02 09:29:27 -0600 | [diff] [blame] | 94 | - role: SLAVE |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 95 | build-on: |
| 96 | - SUCCESS |
| 97 | - FAILURE |
| 98 | - UNSTABLE |
| 99 | - ABORTED |
| 100 | - NOT_BUILT |
| 101 | build-steps: |
| 102 | - shell: |- |
| 103 | #!/bin/bash -e |
| 104 | export CI_ROOT=${PWD}/tf-a-ci-scripts |
| 105 | bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh" |
| 106 | - archive: |
Paul Sokolovsky | 7841154 | 2022-04-26 01:34:40 +0300 | [diff] [blame] | 107 | artifacts: report.json, report.html, merge/outdir/** |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 108 | - groovy-postbuild: |
| 109 | script: |
| 110 | !include-raw: |
Leonardo Sandoval | ffaee98 | 2021-11-11 10:27:57 -0600 | [diff] [blame] | 111 | - tf-a-ci-gateway/postbuild.groovy |