blob: 8818bda59fc3a00fe2e1df573e1d74895008b4c4 [file] [log] [blame]
Tomás González47336e02025-06-13 10:03:13 +01001- job:
2 name: arm-sp805-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-sp805 crate
8 properties:
Chris Kay675db4f2025-06-24 14:14:34 +01009 - throttle:
10 option: project
11 enabled: true
12 max-total: 5
13 - build-discarder:
14 days-to-keep: 14
15 num-to-keep: 60
Tomás González47336e02025-06-13 10:03:13 +010016 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +010017 - gerrit:
18 server-name: review.trustedfirmware.org
19 projects:
20 - branches:
21 - branch-compare-type: PLAIN
22 branch-pattern: main
23 project-compare-type: PLAIN
24 project-pattern: rust-spmc/arm-sp805
25 trigger-on:
Tomás González47336e02025-06-13 10:03:13 +010026 - patchset-created-event:
27 exclude-drafts: true
28 exclude-trivial-rebase: false
29 exclude-no-code-change: true
30 exclude-private: true
31 exclude-wip: true
32 - comment-added-contains-event:
Chris Kay675db4f2025-06-24 14:14:34 +010033 comment-contains-value: ^RUN_CI$
34 override-votes: true
35 gerrit-build-started-verified-value: 0
36 gerrit-build-successful-verified-value: 1
37 gerrit-build-failed-verified-value: -1
38 gerrit-build-unstable-verified-value: -1
39 gerrit-build-notbuilt-verified-value: 0
40 # without explicitly setting these values to 0, the plugin will by
41 # default leave Code Review votes
42 gerrit-build-started-codereview-value: 0
43 gerrit-build-successful-codereview-value: 0
44 gerrit-build-failed-codereview-value: 0
45 gerrit-build-unstable-codereview-value: 0
46 gerrit-build-notbuilt-codereview-value: 0
47 silent: false
48 silent-start: false
Tomás González47336e02025-06-13 10:03:13 +010049 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010050 # GERRIT_{PROJECT,BRANCH,REFSPEC} are set when triggered by a Gerrit
51 # patchset - defaults below are for manual triggers
52 - string:
53 name: GERRIT_PROJECT
54 default: rust-spmc/arm-sp805
55 - string:
56 name: GERRIT_BRANCH
57 default: refs/heads/main
58 - string:
59 name: GERRIT_REFSPEC
60 default: +refs/heads/main:refs/remotes/origin/main
61 description: |
62 'e.g. refs/changes/13/31138/1'
63 - string:
64 name: ARM_SP805_GERRIT_REFSPEC
65 default: ${GERRIT_REFSPEC}
66 description: |
67 'do-not-amend: used by scripts/clone.sh to fetch the correct Gerrit patchset - use GERRIT_REFSPEC instead'
68 - string:
69 name: CI_REFSPEC
70 default: +refs/heads/tfa-next:refs/remotes/origin/tfa-next
71 description: |
72 'Refs to fetch for the tf-a-ci-scripts repo e.g. refs/changes/13/31138/1'
73 - string:
74 name: JOBS_REFSPEC
75 default: refs/heads/master
76 description: |
77 tf-a-job-configs refspec to use. The master branch is used by default.
78 - string:
79 name: TEST_FEATURES
80 description: Features the arm-sp805 crate will be tested against
81 - string:
82 name: SHARE_FOLDER
83 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
84 description: Folder containing shared repositories for downstream pipeline jobs
85 - string:
86 name: CLONE_REPOS
87 default: tf-a-ci-scripts,arm-sp805
88 description: |
89 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.)
90 - string:
91 name: FETCH_SSH
92 default: 1
93 description: |
94 Fetch branches with authenticated SSH instead of anonymous HTTPS
Tomás González47336e02025-06-13 10:03:13 +010095 wrappers:
96 - credentials-binding:
97 - ssh-user-private-key:
98 credential-id: TFA_CI_BOT_USER_SSH_KEY
99 key-file-variable: CI_BOT_KEY
100 username-variable: CI_BOT_USERNAME
Chris Kay675db4f2025-06-24 14:14:34 +0100101 passphrase-variable: ""
Tomás González47336e02025-06-13 10:03:13 +0100102 - workspace-cleanup
103 - timestamps
104 builders:
Chris Kay675db4f2025-06-24 14:14:34 +0100105 - shell: !include-raw: scripts/clone.sh
106 - shell: |
107 #!/bin/bash
108 set -e
109 cat << EOF > tf-a-env.param
110 ARM_SP805_GERRIT_PROJECT=${GERRIT_PROJECT}
111 ARM_SP805_GERRIT_REFSPEC=${GERRIT_REFSPEC}
112 SHARE_FOLDER=${SHARE_FOLDER}
113 EOF
114 - multijob:
115 name: Platform independent tests
116 condition: COMPLETED
117 projects:
118 - name: generic-lib-testing
119 current-parameters: true
120 kill-phase-on: NEVER
121 predefined-parameters: |
122 TEST_REPO_NAME=arm-sp805
123 TEST_REPO_PROJECT=rust-spmc
124 TEST_FEATURES=${TEST_FEATURES}
125 property-file: tf-a-env.param