blob: f7c3bc799ccabfb9f491b01d82d2e59e010c7fba [file] [log] [blame]
- job:
name: tf-a-tftf-main
description: Main CI job for the Trusted Firmware-A Test Framework.
node: docker-amd64-tf-a-jammy
project-type: multijob
concurrent: true
disabled: false
properties:
- build-discarder:
days-to-keep: 14
num-to-keep: 60
- throttle:
option: project
enabled: true
max-total: 5
parameters:
- string:
name: TF_GERRIT_PROJECT
default: TF-A/trusted-firmware-a
description: Gerrit project name for Trusted Firmware-A.
- string:
name: TF_GERRIT_BRANCH
default: refs/heads/integration
description: Git project branch for Trusted Firmware-A.
- string:
name: TF_GERRIT_REFSPEC
default: +refs/heads/integration:refs/remotes/origin/integration
description: Git refspec for Trusted Firmware-A.
- string:
name: TFTF_GERRIT_PROJECT
default: TF-A/tf-a-tests
description: Gerrit project name for the Trusted Firmware-A Test Framework.
- string:
name: TFTF_GERRIT_BRANCH
default: refs/heads/master
description: Git branch for the Trusted Firmware-A Test Framework.
- string:
name: TFTF_GERRIT_REFSPEC
default: +refs/heads/master:refs/remotes/origin/master
description: Git refspec for the Trusted Firmware-A Test Framework.
- string:
name: CI_REFSPEC
default: +refs/heads/master:refs/remotes/origin/master
description: Git refspec for the Trusted Firmware-A CI scripts.
- string:
name: RMM_REFSPEC
default: +refs/heads/main:refs/remotes/origin/main
description: |
tf-rmm refspec to use. The main branch is used by default.
- string:
name: JOBS_REFSPEC
default: refs/heads/master
description: |
tf-a-job-configs refspec to use. The master branch is used by default.
- string:
name: SHARE_FOLDER
default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
description: Folder containing shared repositories for downstream pipeline jobs.
wrappers:
- credentials-binding:
- ssh-user-private-key:
credential-id: TFA_CI_BOT_USER_SSH_KEY
key-file-variable: CI_BOT_KEY
username-variable: CI_BOT_USERNAME
passphrase-variable: ""
- workspace-cleanup
- timestamps
builders:
- shell: !include-raw: scripts/clone.sh
- shell: |
#!/bin/bash
cat << EOF > tf-a-tests-env.param
GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
QA_SERVER_PROJECT=${JOB_NAME}
QA_SERVER_VERSION=${BUILD_NUMBER}
SHARE_FOLDER=${SHARE_FOLDER}
EOF
- multijob:
condition: COMPLETED
name: Static checks on TFTF
projects:
- current-parameters: true
kill-phase-on: NEVER
name: tf-a-static-checks
alias: tftf-static-checks
predefined-parameters: REPO_UNDER_TEST=tf-a-tests
property-file: tf-a-tests-env.param
- multijob:
condition: COMPLETED
name: Build TFTF
projects:
- current-parameters: true
kill-phase-on: NEVER
name: tf-a-ci-gateway
alias: tftf-l1-build
predefined-parameters: TEST_GROUPS=tftf-l1-build
property-file: tf-a-tests-env.param
- multijob:
condition: COMPLETED
name: Run TFTF FWU
projects:
- current-parameters: true
kill-phase-on: NEVER
name: tf-a-ci-gateway
alias: tftf-l2-fwu
predefined-parameters: TEST_GROUPS=tftf-l2-fwu
property-file: tf-a-tests-env.param
- multijob:
condition: COMPLETED
name: Run TFTF
projects:
- current-parameters: true
kill-phase-on: NEVER
name: tf-a-ci-gateway
alias: tftf-l1-fvp tftf-l1-juno
predefined-parameters: TEST_GROUPS=tftf-l1-fvp tftf-l1-juno
property-file: tf-a-tests-env.param
- current-parameters: true
kill-phase-on: NEVER
name: tf-a-ci-gateway
alias: tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
predefined-parameters: TEST_GROUPS=tftf-l2-fvp-auxiliary tftf-l2-fvp-dynamiq
property-file: tf-a-tests-env.param
- current-parameters: true
kill-phase-on: NEVER
name: tf-a-ci-gateway
alias: spm-l2-boot-tests tf-l2-boot-tests-spm-mm
predefined-parameters: TEST_GROUPS=spm-l2-boot-tests tf-l2-boot-tests-spm-mm
property-file: tf-a-tests-env.param
- current-parameters: true
kill-phase-on: NEVER
name: tf-a-ci-gateway
alias: spm-l3-boot-tests tf-l3-boot-tests-spm-mm
predefined-parameters: TEST_GROUPS=spm-l3-boot-tests tf-l3-boot-tests-spm-mm
property-file: tf-a-tests-env.param
- multijob:
condition: SUCCESSFUL
name: Run TFTF Extensive
projects:
- current-parameters: true
kill-phase-on: FAILURE
name: tf-a-ci-gateway
alias: tftf-l2-extensive-tests-fvp
predefined-parameters: TEST_GROUPS=tftf-l2-extensive-tests-fvp
property-file: tf-a-tests-env.param