Zachary Leaf | 0923592 | 2024-11-01 17:52:16 +0000 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-static-tfa-next |
| 3 | node: docker-amd64-tf-a-jammy |
| 4 | project-type: freestyle |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | defaults: global |
| 8 | description: Run formatting, static checks and lints |
| 9 | properties: |
| 10 | - build-discarder: |
| 11 | days-to-keep: 14 |
| 12 | parameters: |
| 13 | - string: |
| 14 | name: TF_GERRIT_PROJECT |
| 15 | default: 'TF-A/trusted-firmware-a' |
| 16 | - string: |
| 17 | name: TF_GERRIT_BRANCH |
| 18 | default: 'refs/heads/tfa-next' |
| 19 | - string: |
| 20 | name: TF_GERRIT_REFSPEC |
| 21 | default: '+refs/heads/tfa-next:refs/remotes/origin/tfa-next' |
| 22 | - string: |
| 23 | name: TFTF_GERRIT_PROJECT |
| 24 | default: 'TF-A/tf-a-tests' |
| 25 | - string: |
| 26 | name: TFTF_GERRIT_BRANCH |
| 27 | default: 'refs/heads/master' |
| 28 | - string: |
| 29 | name: TFTF_GERRIT_REFSPEC |
| 30 | default: '+refs/heads/master:refs/remotes/origin/master' |
| 31 | - string: |
| 32 | name: CI_REFSPEC |
| 33 | default: '+refs/heads/tfa-next:refs/remotes/origin/tfa-next' |
| 34 | - string: |
Saheer Babu | b495f03 | 2025-01-21 23:01:11 +0000 | [diff] [blame] | 35 | name: JOBS_REFSPEC |
| 36 | default: 'refs/heads/master' |
| 37 | description: | |
| 38 | tf-a-job-configs refspec to use. The master branch is used by default. |
| 39 | - string: |
Zachary Leaf | 0923592 | 2024-11-01 17:52:16 +0000 | [diff] [blame] | 40 | name: GERRIT_BRANCH |
| 41 | default: '' |
| 42 | - string: |
| 43 | name: SHARE_FOLDER |
| 44 | default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}' |
| 45 | description: 'Folder containing shared repositories for downstream pipeline jobs' |
| 46 | wrappers: |
| 47 | - credentials-binding: |
| 48 | - ssh-user-private-key: |
| 49 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 50 | key-file-variable: CI_BOT_KEY |
| 51 | username-variable: CI_BOT_USERNAME |
| 52 | passphrase-variable: '' |
| 53 | - timestamps |
| 54 | - timeout: |
| 55 | timeout: 240 |
| 56 | fail: true |
| 57 | builders: |
| 58 | - shell: |
| 59 | !include-raw: scripts/clone.sh |
| 60 | - shell: | |
| 61 | #!/bin/bash |
| 62 | set -e |
| 63 | cat << EOF > env.param |
| 64 | QA_SERVER_PROJECT=${JOB_NAME} |
| 65 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 66 | GERRIT_PROJECT=${TF_GERRIT_PROJECT} |
| 67 | GERRIT_BRANCH=${TF_GERRIT_BRANCH} |
| 68 | GERRIT_REFSPEC=${TF_GERRIT_REFSPEC} |
| 69 | EOF |
| 70 | cd ${WORKSPACE}/trusted-firmware-a |
| 71 | # Executed project-related static checks: copyright, unix line endings, |
| 72 | # formatting and lints |
| 73 | IS_CONTINUOUS_INTEGRATION=1 ${WORKSPACE}/tf-a-ci-scripts/script/next-checks/next-checks.sh |
| 74 | publishers: |
| 75 | - archive: |
| 76 | artifacts: 'trusted-firmware-a/next-checks.log' |
| 77 | # TODO: it is not possible to give this groovy script the |
| 78 | # auth/permissions required to access next-checks.log |
| 79 | # uncomment this once the job is made public |
| 80 | # - groovy-postbuild: |
| 81 | # script: |
| 82 | # !include-raw: |
| 83 | # - tf-a-static-tfa-next/postbuild.groovy |