blob: a83d97fb0f9a8d4fa77c159655eb040d4ace7c67 [file] [log] [blame]
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +03001- job:
2 name: tf-a-lts2.8-ci-gateway
3 node: docker-amd64-tf-a-lts2.8-jammy
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: 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: 240
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 - string:
41 name: TF_GERRIT_REFSPEC
Govindraj Raja022c4db2023-10-10 16:42:04 -050042 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030043 description: |
44 trusted-firmware-a refspec to use. The master branch is used by default.
45 - string:
46 name: TFTF_GERRIT_REFSPEC
Govindraj Raja022c4db2023-10-10 16:42:04 -050047 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030048 description: |
49 tf-a-tests refspec to use. The master branch is used by default.
50 - string:
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:
56 name: CI_REFSPEC
Govindraj Raja022c4db2023-10-10 16:42:04 -050057 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030058 description: |
59 tf-a-ci-scripts refspec to use. The master branch is used by default.
60 - bool:
61 name: ENABLE_STATIC_CHECK
62 default: false
63 - string:
64 name: QA_TOOLS_REPO
65 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
66 - string:
67 name: QA_TOOLS_BRANCH
68 default: 'master'
69 - string:
70 name: SHARE_FOLDER
71 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
72 description: 'Folder containing shared repositories for downstream pipeline jobs'
73 builders:
74 - shell:
75 !include-raw: scripts/clone.sh
76 - shell: |
77 #!/bin/bash
78 set -e
79 CI_ROOT=${PWD}/tf-a-ci-scripts
80 export workspace=$PWD
81 export test_groups=$TEST_GROUPS
82 $CI_ROOT/script/gen_test_desc.py
83 cat << EOF > share.param
84 SHARE_FOLDER=${SHARE_FOLDER}
85 EOF
86 - trigger-builds:
87 - project:
Paul Sokolovskybe42c2a2023-06-01 22:04:58 +030088 - tf-a-lts2.8-builder
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030089 block: true
90 property-file: share.param
91 current-parameters: true
92 property-file-fail-on-missing: false
93 parameter-factories:
94 - factory: filebuild
95 file-pattern: '*.testprop'
96 no-files-found-action: FAIL
97 publishers:
98 - postbuildscript:
99 builders:
100 - role: SLAVE
101 build-on:
102 - SUCCESS
103 - FAILURE
104 - UNSTABLE
105 - ABORTED
106 - NOT_BUILT
107 build-steps:
108 - shell: |-
109 #!/bin/bash -e
110 export CI_ROOT=${PWD}/tf-a-ci-scripts
111 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
112 - archive:
113 artifacts: report.json, report.html, merge/outdir/**
114 - groovy-postbuild:
115 script:
116 !include-raw:
117 - tf-a-ci-gateway/postbuild.groovy