Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 1 | - scm: |
| 2 | name: tf-a-ci-scripts |
| 3 | scm: |
| 4 | - git: |
| 5 | url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git |
| 6 | refspec: +refs/heads/master:refs/remotes/origin/master |
| 7 | name: origin |
| 8 | branches: |
| 9 | - refs/heads/master |
| 10 | basedir: tf-a-ci-scripts |
| 11 | skip-tag: true |
| 12 | shallow-clone: true |
| 13 | wipe-workspace: false |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 14 | - job: |
| 15 | name: tf-ci-gateway |
Leonardo Sandoval | b196166 | 2021-02-02 09:29:27 -0600 | [diff] [blame] | 16 | node: docker-amd64-tf-a-bionic |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 17 | project-type: freestyle |
| 18 | concurrent: true |
| 19 | disabled: false |
| 20 | defaults: global |
| 21 | description: | |
| 22 | Main job entry point for a Trusted Firmware A (TF-A) CI. |
| 23 | properties: |
| 24 | - build-discarder: |
Leonardo Sandoval | a4feb55 | 2021-03-02 12:10:21 -0600 | [diff] [blame] | 25 | days-to-keep: 14 |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 26 | - throttle: |
| 27 | option: project |
| 28 | enabled: true |
| 29 | max-per-node: 3 |
| 30 | max-total: 10 |
| 31 | - authorization: |
Leonardo Sandoval | ebca882 | 2021-01-25 18:20:04 -0600 | [diff] [blame] | 32 | !include: authorization.yaml.inc |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 33 | wrappers: |
| 34 | - credentials-binding: |
| 35 | - ssh-user-private-key: |
| 36 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 37 | key-file-variable: CI_BOT_KEY |
| 38 | username-variable: CI_BOT_USERNAME |
| 39 | passphrase-variable: '' |
| 40 | - workspace-cleanup |
| 41 | - timeout: |
| 42 | timeout: 180 |
| 43 | fail: true |
| 44 | - timestamps |
| 45 | parameters: |
| 46 | - string: |
| 47 | name: TEST_GROUPS |
| 48 | default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug |
| 49 | description: | |
| 50 | White space separated list of test configs: can be mix of specific |
| 51 | test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and |
| 52 | group names (e.g., <code>l1 l2</code>). |
| 53 | - bool: |
| 54 | name: ENABLE_STATIC_CHECK |
| 55 | default: false |
| 56 | scm: |
| 57 | - tf-a-ci-scripts |
| 58 | builders: |
Fathi Boudra | 9c8a945 | 2020-12-08 22:16:57 +0100 | [diff] [blame] | 59 | - shell: | |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 60 | #!/bin/bash |
| 61 | set -e |
| 62 | CI_ROOT=${PWD}/tf-a-ci-scripts |
| 63 | export workspace=$PWD |
| 64 | export test_groups=$TEST_GROUPS |
| 65 | $CI_ROOT/script/gen_test_desc.py |
| 66 | - trigger-builds: |
| 67 | - project: |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 68 | - tf-a-builder |
| 69 | block: true |
Leonardo Sandoval | dc2a03a | 2020-10-05 18:12:19 -0500 | [diff] [blame] | 70 | current-parameters: true |
| 71 | property-file-fail-on-missing: false |
| 72 | parameter-factories: |
| 73 | - factory: binaryfile |
| 74 | parameter-name: TEST_DESC |
| 75 | file-pattern: '*.test' |
| 76 | no-files-found-action: FAIL |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 77 | publishers: |
| 78 | - postbuildscript: |
| 79 | builders: |
Leonardo Sandoval | b196166 | 2021-02-02 09:29:27 -0600 | [diff] [blame] | 80 | - role: SLAVE |
Leonardo Sandoval | 9f15980 | 2021-01-20 16:47:25 -0600 | [diff] [blame] | 81 | build-on: |
| 82 | - SUCCESS |
| 83 | - FAILURE |
| 84 | - UNSTABLE |
| 85 | - ABORTED |
| 86 | - NOT_BUILT |
| 87 | build-steps: |
| 88 | - shell: |- |
| 89 | #!/bin/bash -e |
| 90 | export CI_ROOT=${PWD}/tf-a-ci-scripts |
| 91 | bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh" |
| 92 | - archive: |
| 93 | artifacts: report.json, report.html |
| 94 | - groovy-postbuild: |
| 95 | script: |
| 96 | !include-raw: |
| 97 | - tf-ci-gateway/postbuild.groovy |