blob: ab04ccc3d2e8c33ac63b8ff8d3e81c88ada24294 [file] [log] [blame]
Arthur She07ea0c22023-06-22 21:45:33 -07001- job:
2 name: arthur-tf-a-build-groups
3 node: docker-amd64-tf-a-jammy
4 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: Main CI job for Trusted Firmware.
8 properties:
9 - throttle:
10 option: project
11 enabled: true
12 max-total: 5
13 - build-discarder:
14 days-to-keep: 14
15 num-to-keep: 60
16 parameters:
17 - string:
18 name: TEST_GROUPS
19 default: 'tf-l1-boot-tests-plat'
20 - string:
21 name: TF_GERRIT_PROJECT
22 default: 'TF-A/trusted-firmware-a'
23 - string:
24 name: TF_GERRIT_BRANCH
25 default: 'refs/heads/integration'
26 - string:
27 name: TF_GERRIT_REFSPEC
28 default: '+refs/heads/integration:refs/remotes/origin/integration'
29 - string:
30 name: TFTF_GERRIT_PROJECT
31 default: 'TF-A/tf-a-tests'
32 - string:
33 name: TFTF_GERRIT_BRANCH
34 default: 'refs/heads/master'
35 - string:
36 name: TFTF_GERRIT_REFSPEC
37 default: '+refs/heads/master:refs/remotes/origin/master'
38 - string:
39 name: CI_GERRIT_PROJECT
40 default: 'people/arthur.she/tf-a-ci-scripts.git'
41 - string:
42 name: CI_REFSPEC
43 default: '+refs/heads/master:refs/remotes/origin/master'
44 - string:
45 name: JOBS_PROJECT
46 default: 'next/ci/tf-a-job-configs.git'
47 - string:
48 name: SHARE_FOLDER
Chris Kay4bbc9692025-06-13 15:24:41 +010049 default: '/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}'
Arthur She07ea0c22023-06-22 21:45:33 -070050 description: 'Folder containing shared repositories for downstream pipeline jobs'
51 wrappers:
52 - credentials-binding:
53 - ssh-user-private-key:
54 credential-id: TFA_CI_BOT_USER_SSH_KEY
55 key-file-variable: CI_BOT_KEY
56 username-variable: CI_BOT_USERNAME
57 passphrase-variable: ''
58 - workspace-cleanup
59 - timestamps
60 builders:
61 - shell:
62 !include-raw: arthur-scripts/clone.sh
63 - shell: |
64 #!/bin/bash
65 set -e
66 cat << EOF > tf-a-env.param
67 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
68 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
69 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
70 QA_SERVER_PROJECT=${JOB_NAME}
71 QA_SERVER_VERSION=${BUILD_NUMBER}
72 SHARE_FOLDER=${SHARE_FOLDER}
73 EOF
74 cat << EOF > tf-a-tests-env.param
75 GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
76 GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
77 GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
78 QA_SERVER_PROJECT=${JOB_NAME}
79 QA_SERVER_VERSION=${BUILD_NUMBER}
80 SHARE_FOLDER=${SHARE_FOLDER}
81 EOF
82 - multijob:
83 name: Build Group
84 condition: COMPLETED
85 projects:
86 - name: arthur-tf-a-ci-gateway
87 current-parameters: true
88 kill-phase-on: NEVER
89 predefined-parameters: ${TEST_GROUPS}
90 property-file: tf-a-env.param
91 # If all tests passed, catch up the master branch with integration
92 - conditional-step:
93 condition-kind: current-status
94 condition-best: SUCCESS
95 condition-worst: SUCCESS
96 steps:
97 - shell: bash "${WORKSPACE}/tf-a-ci-scripts/script/scratch_scripts/fast-forward-master.sh"