blob: a6284b4f27d7e890acb0bffd117a086b3fb1879f [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>).
Zelalem Awekee8801df2021-10-25 13:41:44 -050040 - 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:
51 name: CI_REFSPEC
52 default: '+refs/heads/master:refs/remotes/origin/master'
53 description: |
54 tf-a-ci-scripts refspec to use. The master branch is used by default.
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050055 - bool:
56 name: ENABLE_STATIC_CHECK
57 default: false
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050058 - string:
59 name: SHARE_FOLDER
60 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
61 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050062 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050063 - shell:
64 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010065 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050066 #!/bin/bash
67 set -e
68 CI_ROOT=${PWD}/tf-a-ci-scripts
69 export workspace=$PWD
70 export test_groups=$TEST_GROUPS
71 $CI_ROOT/script/gen_test_desc.py
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050072 cat << EOF > share.param
73 SHARE_FOLDER=${SHARE_FOLDER}
74 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050075 - trigger-builds:
76 - project:
Leonardo Sandoval9f159802021-01-20 16:47:25 -060077 - tf-a-builder
78 block: true
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050079 property-file: share.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050080 current-parameters: true
81 property-file-fail-on-missing: false
82 parameter-factories:
83 - factory: binaryfile
84 parameter-name: TEST_DESC
85 file-pattern: '*.test'
86 no-files-found-action: FAIL
Leonardo Sandoval9f159802021-01-20 16:47:25 -060087 publishers:
88 - postbuildscript:
89 builders:
Leonardo Sandovalb1961662021-02-02 09:29:27 -060090 - role: SLAVE
Leonardo Sandoval9f159802021-01-20 16:47:25 -060091 build-on:
92 - SUCCESS
93 - FAILURE
94 - UNSTABLE
95 - ABORTED
96 - NOT_BUILT
97 build-steps:
98 - shell: |-
99 #!/bin/bash -e
100 export CI_ROOT=${PWD}/tf-a-ci-scripts
101 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
102 - archive:
103 artifacts: report.json, report.html
104 - groovy-postbuild:
105 script:
106 !include-raw:
107 - tf-ci-gateway/postbuild.groovy