Add tf-m-split-build job
To support TF-M split build feature, enable per-patch tests for TF-M
feature-build-split-v2 branch.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I4d2b5fcd86f8bd2da916866ce783e1d9c8c2a45b
diff --git a/tf-m-split-build.yaml b/tf-m-split-build.yaml
new file mode 100644
index 0000000..e577984
--- /dev/null
+++ b/tf-m-split-build.yaml
@@ -0,0 +1,145 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+
+- job:
+ name: tf-m-split-build
+ description: 'Triggers static checks on Gerrit trigger, then triggers build job after.'
+ project-type: pipeline
+ disabled: false
+ sandbox: true
+ concurrent: true
+ properties:
+ - build-discarder:
+ days-to-keep: 15
+ num-to-keep: 45
+ parameters:
+ - string:
+ name: 'CODE_REPO'
+ default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
+ - string:
+ name: 'CI_SCRIPTS_REPO'
+ default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
+ - string:
+ name: 'CI_SCRIPTS_BRANCH'
+ default: 'feature/split-build'
+ - string:
+ name: 'GERRIT_REFSPEC'
+ default: 'refs/heads/feature-build-split-v2'
+ description: |
+ Specify which TF-M version to use
+ refs/heads/<branch_name> : Pick up latest HEAD on branch
+ TAG_NAME : Pick up a tagged version
+ full commit hash : Pick up a specific commit
+ - string:
+ name: 'GERRIT_BRANCH'
+ default: 'feature-build-split-v2'
+ description: |
+ TF-M branch.
+ - string:
+ name: 'GERRIT_HOST'
+ description: |
+ No need to change.
+ - string:
+ name: 'GERRIT_CHANGE_NUMBER'
+ description: |
+ No need to change.
+ - string:
+ name: 'GERRIT_PATCHSET_REVISION'
+ description: |
+ No need to change.
+ - string:
+ name: 'MCUBOOT_REFSPEC'
+ default: ''
+ description: |
+ Specify which MCUboot version to use
+ refs/heads/<branch_name> : Pick up latest HEAD on branch
+ TAG_NAME : Pick up a tagged version
+ full commit hash : Pick up a specific commit
+ - string:
+ name: 'MCUBOOT_URL'
+ default: 'https://git.trustedfirmware.org/mirror/mcuboot.git'
+ - string:
+ name: 'MBEDTLS_VERSION'
+ default: ''
+ description: |
+ Specify which MBEDTLS version to use
+ refs/heads/<branch_name> : Pick up latest HEAD on branch
+ TAG_NAME : Pick up a tagged version
+ full commit hash : Pick up a specific commit
+ - string:
+ name: 'MBEDTLS_URL'
+ default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
+ - string:
+ name: 'TFM_TESTS_URL'
+ default: 'https://git.trustedfirmware.org/TF-M/tf-m-tests.git'
+ - string:
+ name: 'TFM_TESTS_REFSPEC'
+ default: ''
+ - string:
+ name: 'TFM_EXTRAS_URL'
+ default: 'https://git.trustedfirmware.org/TF-M/tf-m-extras.git'
+ - string:
+ name: 'TFM_EXTRAS_REFSPEC'
+ default: ''
+ - string:
+ name: 'PSA_ARCH_TESTS_URL'
+ default: 'https://git.trustedfirmware.org/mirror/psa-arch-tests.git'
+ - string:
+ name: 'PSA_ARCH_TESTS_VERSION'
+ default: '5c57920'
+ description: |
+ Specify which psa-arch-tests version to use
+ refs/heads/<branch_name> : Pick up latest HEAD on branch
+ TAG_NAME : Pick up a tagged version
+ full commit hash : Pick up a specific commit
+ - string:
+ name: 'QCBOR_URL'
+ default: 'https://github.com/laurencelundblade/QCBOR.git'
+ - string:
+ name: 'QCBOR_VERSION'
+ default: ''
+ description: |
+ Specify which QCBOR version to use
+ refs/heads/<branch_name> : Pick up latest HEAD on branch
+ TAG_NAME : Pick up a tagged version
+ full commit hash : Pick up a specific commit
+ - string:
+ name: SHARE_FOLDER
+ default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
+ description: 'Folder containing shared repositories for downstream pipeline jobs'
+ triggers:
+ - gerrit:
+ trigger-on:
+ - comment-added-event:
+ approval-category: 'Allow-CI'
+ approval-value: '1'
+ projects:
+ - project-compare-type: 'PLAIN'
+ project-pattern: 'TF-M/trusted-firmware-m'
+ branches:
+ - branch-compare-type: 'PLAIN'
+ branch-pattern: 'feature-build-split-v2'
+ override-votes: true
+ gerrit-build-successful-verified-value: 1
+ gerrit-build-failed-verified-value: -1
+ gerrit-build-unstable-verified-value: -1
+ gerrit-build-successful-codereview-value: 0
+ gerrit-build-failed-codereview-value: 0
+ gerrit-build-unstable-codereview-value: 0
+ notification-level: 'OWNER_REVIEWERS'
+ custom-url: $RUN_DISPLAY_URL
+ wrappers:
+ - timestamps
+ pipeline-scm:
+ scm:
+ - git:
+ url: '$CI_SCRIPTS_REPO'
+ branches:
+ - '$CI_SCRIPTS_BRANCH'
+ credentials-id: GIT_SSH_KEY
+ wipe-workspace: false
+ script-path: jenkins/static.jpl