blob: 4aa8232da6662c20a2ff67ab42e0602428554e93 [file] [log] [blame]
Tomás Gonzálezda115e22025-06-09 16:20:23 +01001- job:
2 name: arm-psci-main
3 node: docker-amd64-tf-a-jammy
4 project-type: multijob
5 concurrent: true
6 disabled: false
7 description: Main CI job for the arm-psci crate
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 triggers:
17 - gerrit:
Tomás Gonzáleze5ca2272025-06-13 12:42:43 +010018 silent: true
Tomás Gonzálezda115e22025-06-09 16:20:23 +010019 server-name: 'review.trustedfirmware.org'
20 projects:
21 - branches:
22 - branch-compare-type: PLAIN
23 branch-pattern: 'main'
24 project-compare-type: PLAIN
25 project-pattern: 'rust-spmc/arm-psci'
26 trigger-on:
Tomás Gonzálezda115e22025-06-09 16:20:23 +010027 - comment-added-contains-event:
Tomás Gonzáleze5ca2272025-06-13 12:42:43 +010028 comment-contains-value: '^RUN_CI$'
Tomás Gonzálezda115e22025-06-09 16:20:23 +010029 override-votes: true
30 gerrit-build-started-verified-value: 0
31 gerrit-build-successful-verified-value: 1
32 gerrit-build-failed-verified-value: -1
33 gerrit-build-unstable-verified-value: -1
34 gerrit-build-notbuilt-verified-value: 0
Tomás Gonzálezda115e22025-06-09 16:20:23 +010035 silent-start: false
36 parameters:
37 # GERRIT_{PROJECT,BRANCH,REFSPEC} are set when triggered by a Gerrit
38 # patchset - defaults below are for manual triggers
39 - string:
40 name: GERRIT_PROJECT
41 default: 'rust-spmc/arm-psci'
42 - string:
43 name: GERRIT_BRANCH
44 default: 'refs/heads/main'
45 - string:
46 name: GERRIT_REFSPEC
47 default: '+refs/heads/main:refs/remotes/origin/main'
48 description: |
49 'e.g. refs/changes/13/31138/1'
50 - string:
Tomás Gonzálezb5fb63d2025-06-13 10:22:13 +010051 name: ARM_PSCI_GERRIT_REFSPEC
Tomás Gonzálezda115e22025-06-09 16:20:23 +010052 default: ${GERRIT_REFSPEC}
53 description: |
Tomás Gonzálezb5fb63d2025-06-13 10:22:13 +010054 'do-not-amend: used by scripts/clone-tomgon.sh to fetch the correct Gerrit patchset - use GERRIT_REFSPEC instead'
Tomás Gonzálezda115e22025-06-09 16:20:23 +010055 - string:
56 name: CI_REFSPEC
Tomás Gonzáleze5ca2272025-06-13 12:42:43 +010057 default: '+refs/heads/tfa-next:refs/remotes/origin/tfa-next'
Tomás Gonzálezda115e22025-06-09 16:20:23 +010058 description: |
59 'Refs to fetch for the tf-a-ci-scripts repo e.g. refs/changes/13/31138/1'
60 - string:
61 name: JOBS_REFSPEC
62 default: 'refs/heads/master'
63 description: |
64 tf-a-job-configs refspec to use. The master branch is used by default.
65 - string:
Tomás Gonzálezb5fb63d2025-06-13 10:22:13 +010066 name: TEST_FEATURES
67 description: 'Features the arm-psci crate will be tested against'
68 - string:
Tomás Gonzálezda115e22025-06-09 16:20:23 +010069 name: SHARE_FOLDER
70 default: '/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}'
71 description: 'Folder containing shared repositories for downstream pipeline jobs'
72 - string:
73 name: CLONE_REPOS
74 default: "tf-a-ci-scripts,arm-psci"
75 description: |
Tomás Gonzálezb5fb63d2025-06-13 10:22:13 +010076 Optional arg to clone only specific projects from default list (tf-a-ci-scripts,trusted-firmware-a,tf-a-tests,spm,tf-m-tests,tf-m-extras,etc.)
Tomás Gonzálezda115e22025-06-09 16:20:23 +010077 - string:
78 name: FETCH_SSH
79 default: 1
80 description: |
81 Fetch branches with authenticated SSH instead of anonymous HTTPS
82 wrappers:
83 - credentials-binding:
84 - ssh-user-private-key:
85 credential-id: TFA_CI_BOT_USER_SSH_KEY
86 key-file-variable: CI_BOT_KEY
87 username-variable: CI_BOT_USERNAME
88 passphrase-variable: ''
89 - workspace-cleanup
90 - timestamps
91 builders:
92 - shell:
93 !include-raw: scripts/clone-tomgon.sh
94 - shell: |
95 #!/bin/bash
96 set -e
97 cat << EOF > tf-a-env.param
98 ARM_PSCI_GERRIT_PROJECT=${GERRIT_PROJECT}
99 ARM_PSCI_GERRIT_REFSPEC=${GERRIT_REFSPEC}
100 SHARE_FOLDER=${SHARE_FOLDER}
101 EOF
102 - multijob:
103 name: Platform independent tests
104 condition: COMPLETED
105 projects:
Tomás Gonzálezb5fb63d2025-06-13 10:22:13 +0100106 - name: generic-lib-testing
Tomás Gonzálezda115e22025-06-09 16:20:23 +0100107 current-parameters: true
108 kill-phase-on: NEVER
109 predefined-parameters: |
110 TEST_REPO_NAME=arm-psci
111 TEST_REPO_PROJECT=rust-spmc
Tomás Gonzálezb5fb63d2025-06-13 10:22:13 +0100112 TEST_FEATURES=${TEST_FEATURES}
Tomás Gonzálezda115e22025-06-09 16:20:23 +0100113 property-file: tf-a-env.param