blob: 45390236a49e6513e2f9028e0477a9f5f8b3f7ed [file] [log] [blame]
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05001- job:
2 name: tf-ci-gateway
Leonardo Sandovalb1961662021-02-02 09:29:27 -06003 node: docker-amd64-tf-a-bionic
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05004 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:
Leonardo Sandovala4feb552021-03-02 12:10:21 -060012 days-to-keep: 14
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050013 - throttle:
14 option: project
15 enabled: true
16 max-per-node: 3
17 max-total: 10
18 - authorization:
Leonardo Sandovalebca8822021-01-25 18:20:04 -060019 !include: authorization.yaml.inc
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050020 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>).
40 - bool:
41 name: ENABLE_STATIC_CHECK
42 default: false
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050043 - string:
44 name: SHARE_FOLDER
45 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
46 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050047 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050048 - shell:
49 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010050 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050051 #!/bin/bash
52 set -e
53 CI_ROOT=${PWD}/tf-a-ci-scripts
54 export workspace=$PWD
55 export test_groups=$TEST_GROUPS
56 $CI_ROOT/script/gen_test_desc.py
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050057 cat << EOF > share.param
58 SHARE_FOLDER=${SHARE_FOLDER}
59 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050060 - trigger-builds:
61 - project:
Leonardo Sandoval9f159802021-01-20 16:47:25 -060062 - tf-a-builder
63 block: true
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050064 property-file: share.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050065 current-parameters: true
66 property-file-fail-on-missing: false
67 parameter-factories:
68 - factory: binaryfile
69 parameter-name: TEST_DESC
70 file-pattern: '*.test'
71 no-files-found-action: FAIL
Leonardo Sandoval9f159802021-01-20 16:47:25 -060072 publishers:
73 - postbuildscript:
74 builders:
Leonardo Sandovalb1961662021-02-02 09:29:27 -060075 - role: SLAVE
Leonardo Sandoval9f159802021-01-20 16:47:25 -060076 build-on:
77 - SUCCESS
78 - FAILURE
79 - UNSTABLE
80 - ABORTED
81 - NOT_BUILT
82 build-steps:
83 - shell: |-
84 #!/bin/bash -e
85 export CI_ROOT=${PWD}/tf-a-ci-scripts
86 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
87 - archive:
88 artifacts: report.json, report.html
89 - groovy-postbuild:
90 script:
91 !include-raw:
92 - tf-ci-gateway/postbuild.groovy