jobs: include common prefix 'tf-a' for all job names
Besides having a uniform pattern to identify TF-A CI jobs, the idea is
to easily match these using patterns/regexs which would make role-base
authentication easier to maintain. Role-base authentication would
become the default authentication method [1] required for the on-going
MbedTLS CI migration [2], where jobs only accept this authentication
type.
Once role-base setup is complete at Jenkins configuration level for
all CI jobs (include TF-A and TF-M jobs), then subsequent patches
should remove all the current (matrix) authentication code embedded
into the jobs.
[1] https://linaro.atlassian.net/browse/TFC-197
[2] https://linaro.atlassian.net/browse/TFC-4
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I0cd286969c2ea8020bab6162c094bef63ab9afaa
diff --git a/tf-a-daily.yaml b/tf-a-daily.yaml
new file mode 100644
index 0000000..7827fbd
--- /dev/null
+++ b/tf-a-daily.yaml
@@ -0,0 +1,58 @@
+- job:
+ name: tf-a-daily
+ node: docker-amd64-tf-a-bionic
+ project-type: freestyle
+ concurrent: false
+ disabled: false
+ description: Triggers tf-main and tf-coverity for the TF-A project.
+ properties:
+ - build-discarder:
+ days-to-keep: 14
+ num-to-keep: 60
+ - authorization:
+ !include: authorization.yaml.inc
+ parameters:
+ - string:
+ name: TF_GERRIT_PROJECT
+ default: 'TF-A/trusted-firmware-a'
+ - string:
+ name: TF_GERRIT_BRANCH
+ default: 'refs/heads/integration'
+ - string:
+ name: TF_GERRIT_REFSPEC
+ default: '+refs/heads/integration:refs/remotes/origin/integration'
+ - string:
+ name: TFTF_GERRIT_PROJECT
+ default: 'TF-A/tf-a-tests'
+ - string:
+ name: TFTF_GERRIT_BRANCH
+ default: 'refs/heads/master'
+ - string:
+ name: TFTF_GERRIT_REFSPEC
+ default: '+refs/heads/master:refs/remotes/origin/master'
+ - string:
+ name: CI_REFSPEC
+ default: '+refs/heads/master:refs/remotes/origin/master'
+ - string:
+ name: SHARE_FOLDER
+ default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
+ description: 'Folder containing shared repositories for downstream pipeline jobs'
+ wrappers:
+ - timestamps
+ builders:
+ - shell:
+ !include-raw: scripts/clone.sh
+ - shell: |
+ #!/bin/bash
+ set -e
+ cat << EOF > share.param
+ SHARE_FOLDER=${SHARE_FOLDER}
+ EOF
+ - trigger-builds:
+ - project:
+ - tf-a-main
+ - tf-a-coverity
+ block: true
+ current-parameters: true
+ triggers:
+ - timed: 'H 17 * * *'