Manish V Badarkhe | 89a210d | 2023-01-05 13:52:03 +0000 | [diff] [blame] | 1 | - job: |
| 2 | name: manishvbarm-tf-a-main |
| 3 | node: docker-amd64-tf-a-bionic |
| 4 | project-type: multijob |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | description: Main CI job for Trusted Firmware. |
| 8 | properties: |
| 9 | - throttle: |
| 10 | option: project |
| 11 | enabled: true |
| 12 | max-total: 5 |
| 13 | - build-discarder: |
| 14 | days-to-keep: 14 |
| 15 | num-to-keep: 60 |
| 16 | - authorization: |
| 17 | !include: manishvbarm-authorization.yaml.inc |
| 18 | parameters: |
| 19 | - string: |
| 20 | name: TF_GERRIT_PROJECT |
| 21 | default: 'TF-A/trusted-firmware-a' |
| 22 | - string: |
| 23 | name: TF_GERRIT_BRANCH |
| 24 | default: 'refs/heads/integration' |
| 25 | - string: |
| 26 | name: TF_GERRIT_REFSPEC |
| 27 | default: '+refs/heads/integration:refs/remotes/origin/integration' |
| 28 | - string: |
| 29 | name: TFTF_GERRIT_PROJECT |
| 30 | default: 'TF-A/tf-a-tests' |
| 31 | - string: |
| 32 | name: TFTF_GERRIT_BRANCH |
| 33 | default: 'refs/heads/master' |
| 34 | - string: |
| 35 | name: TFTF_GERRIT_REFSPEC |
| 36 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 37 | - string: |
| 38 | name: CI_REFSPEC |
| 39 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 40 | - string: |
| 41 | name: SHARE_FOLDER |
| 42 | default: '/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}' |
| 43 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 44 | wrappers: |
| 45 | - credentials-binding: |
| 46 | - ssh-user-private-key: |
| 47 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 48 | key-file-variable: CI_BOT_KEY |
| 49 | username-variable: CI_BOT_USERNAME |
| 50 | passphrase-variable: '' |
| 51 | - workspace-cleanup |
| 52 | - timestamps |
| 53 | builders: |
| 54 | - shell: |
| 55 | !include-raw: scripts/clone.sh |
| 56 | - shell: | |
| 57 | #!/bin/bash |
| 58 | set -e |
| 59 | cat << EOF > tf-a-env.param |
| 60 | GERRIT_PROJECT=${TF_GERRIT_PROJECT} |
| 61 | GERRIT_BRANCH=${TF_GERRIT_BRANCH} |
| 62 | GERRIT_REFSPEC=${TF_GERRIT_REFSPEC} |
| 63 | QA_SERVER_PROJECT=${JOB_NAME} |
| 64 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 65 | SHARE_FOLDER=${SHARE_FOLDER} |
| 66 | EOF |
| 67 | cat << EOF > tf-a-tests-env.param |
| 68 | GERRIT_PROJECT=${TFTF_GERRIT_PROJECT} |
| 69 | GERRIT_BRANCH=${TFTF_GERRIT_BRANCH} |
| 70 | GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC} |
| 71 | QA_SERVER_PROJECT=${JOB_NAME} |
| 72 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 73 | SHARE_FOLDER=${SHARE_FOLDER} |
| 74 | EOF |
| 75 | - multijob: |
Manish V Badarkhe | 89a210d | 2023-01-05 13:52:03 +0000 | [diff] [blame] | 76 | name: Build Trusted Firmware |
| 77 | condition: COMPLETED |
| 78 | projects: |
| 79 | - name: tf-a-ci-gateway |
| 80 | current-parameters: true |
| 81 | kill-phase-on: NEVER |
| 82 | predefined-parameters: | |
| 83 | TEST_GROUPS=tf-l1-build-fvp tf-l2-build-fvp |
| 84 | property-file: tf-a-env.param |
| 85 | - name: tf-a-ci-gateway |
| 86 | current-parameters: true |
| 87 | kill-phase-on: NEVER |
| 88 | predefined-parameters: TEST_GROUPS=tf-l1-build-juno tf-l2-build-juno |
| 89 | property-file: tf-a-env.param |
| 90 | - name: tf-a-ci-gateway |
| 91 | current-parameters: true |
| 92 | kill-phase-on: NEVER |
Manish V Badarkhe | 47b1122 | 2023-01-05 15:01:16 +0000 | [diff] [blame] | 93 | predefined-parameters: TEST_GROUPS=tf-l1-build-plat tf-l1-build-corrupt |
Manish V Badarkhe | 89a210d | 2023-01-05 13:52:03 +0000 | [diff] [blame] | 94 | property-file: tf-a-env.param |
| 95 | - name: tf-a-ci-gateway |
| 96 | current-parameters: true |
| 97 | kill-phase-on: NEVER |
| 98 | predefined-parameters: TEST_GROUPS=tf-l1-build-clang |
| 99 | property-file: tf-a-env.param |
| 100 | - multijob: |
| 101 | name: TFTF Tests for FVP |
| 102 | condition: COMPLETED |
| 103 | projects: |
| 104 | - name: tf-a-ci-gateway |
| 105 | current-parameters: true |
| 106 | kill-phase-on: NEVER |
| 107 | predefined-parameters: TEST_GROUPS=tftf-l2-fwu |
| 108 | property-file: tf-a-tests-env.param |
Manish V Badarkhe | 89a210d | 2023-01-05 13:52:03 +0000 | [diff] [blame] | 109 | - conditional-step: |
| 110 | condition-kind: current-status |
| 111 | condition-best: SUCCESS |
| 112 | condition-worst: SUCCESS |
| 113 | steps: |
Manish V Badarkhe | cf9b0f7 | 2023-01-05 14:18:02 +0000 | [diff] [blame] | 114 | - shell: |- |
| 115 | #!/bin/bash |
| 116 | if [ $MULTIJOB_FAILED -eq 0 ]; then |
| 117 | echo "Proceed with integration->master fast-forward merge" |
| 118 | bash "${WORKSPACE}/tf-a-ci-scripts/script/scratch_scripts/fast-forward-master.sh" |
| 119 | else |
| 120 | echo "Do not proceed with integration->master merge as sub-jobs failed" |
| 121 | fi |