blob: ffd3b3ab2092f6332c28a683d08858c164153b2a [file] [log] [blame]
- job:
name: saurom-tf-a-main
node: docker-amd64-tf-a-bionic
project-type: multijob
concurrent: true
disabled: false
description: Main CI job for Trusted Firmware.
properties:
- throttle:
option: project
enabled: true
max-total: 5
- build-discarder:
days-to-keep: 14
num-to-keep: 60
- authorization:
!include: saurom-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/staging/${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
set -e
cat << EOF > tf-a-env.param
GERRIT_PROJECT=${TF_GERRIT_PROJECT}
GERRIT_BRANCH=${TF_GERRIT_BRANCH}
GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
QA_SERVER_PROJECT=${JOB_NAME}
QA_SERVER_VERSION=${BUILD_NUMBER}
SHARE_FOLDER=${SHARE_FOLDER}
EOF
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:
name: Build Trusted Firmware
condition: COMPLETED
projects:
- name: tf-a-ci-gateway
current-parameters: true
kill-phase-on: NEVER
predefined-parameters: |
TEST_GROUPS=tf-l1-build-fvp tf-l2-build-fvp
property-file: tf-a-env.param
- name: tf-a-ci-gateway
current-parameters: true
kill-phase-on: NEVER
predefined-parameters: TEST_GROUPS=tf-l1-build-juno tf-l2-build-juno
property-file: tf-a-env.param
- name: tf-a-ci-gateway
current-parameters: true
kill-phase-on: NEVER
predefined-parameters: TEST_GROUPS=tf-l1-build-plat tf-l1-build-corrupt
property-file: tf-a-env.param
- name: tf-a-ci-gateway
current-parameters: true
kill-phase-on: NEVER
predefined-parameters: TEST_GROUPS=tf-l1-build-clang
property-file: tf-a-env.param
- multijob:
name: TFTF Tests for FVP
condition: COMPLETED
projects:
- name: tf-a-ci-gateway
current-parameters: true
kill-phase-on: NEVER
predefined-parameters: TEST_GROUPS=tftf-l2-fwu
property-file: tf-a-tests-env.param
- conditional-step:
condition-kind: current-status
condition-best: SUCCESS
condition-worst: SUCCESS
steps:
- shell: |-
#!/bin/bash
if [ $MULTIJOB_FAILED -eq 0 ]; then
echo "Proceed with integration->master fast-forward merge"
bash "${WORKSPACE}/tf-a-ci-scripts/script/scratch_scripts/fast-forward-master.sh"
else
echo "Do not proceed with integration->master merge as sub-jobs failed"
fi