Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 1 | - job: |
| 2 | name: generic-lib-testing |
| 3 | node: docker-amd64-tf-a-jammy |
| 4 | project-type: freestyle |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | defaults: global |
| 8 | description: Run platform independent tests |
| 9 | properties: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 10 | - build-discarder: |
| 11 | days-to-keep: 14 |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 12 | parameters: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 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: CI_REFSPEC |
| 24 | default: refs/changes/58/39058/5 |
| 25 | - string: |
| 26 | name: JOBS_REFSPEC |
| 27 | default: refs/heads/master |
| 28 | description: | |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 29 | tf-a-job-configs refspec to use. The master branch is used by default. |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 30 | - string: |
| 31 | name: FETCH_SSH |
| 32 | default: 1 |
| 33 | description: | |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 34 | Fetch branches with authenticated SSH instead of anonymous HTTPS |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 35 | - string: |
| 36 | name: GERRIT_BRANCH |
| 37 | default: "" |
| 38 | - string: |
| 39 | name: CLONE_REPOS |
| 40 | default: tf-a-ci-scripts |
| 41 | description: | |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 42 | Optional arg to clone only specific projects from default list (tf-a-ci-scripts,trusted-firmware-a,tf-a-tests,spm,tf-m-tests,tf-m-extras,etc.) |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 43 | - string: |
| 44 | name: JOBS_REFSPEC |
| 45 | default: refs/heads/master |
| 46 | description: | |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 47 | tf-a-job-configs refspec to use. The master branch is used by default. |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 48 | - string: |
| 49 | name: TEST_REPO_PROJECT |
| 50 | default: rust-spmc |
| 51 | - string: |
| 52 | name: TEST_REPO_NAME |
| 53 | - string: |
| 54 | name: TEST_FEATURES |
| 55 | description: Features against which the library will be tested |
| 56 | - string: |
| 57 | name: SHARE_FOLDER |
| 58 | default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER} |
| 59 | description: Folder containing shared repositories for downstream pipeline jobs |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 60 | wrappers: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 61 | - credentials-binding: |
| 62 | - ssh-user-private-key: |
| 63 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 64 | key-file-variable: CI_BOT_KEY |
| 65 | username-variable: CI_BOT_USERNAME |
| 66 | passphrase-variable: "" |
| 67 | - timestamps |
| 68 | - timeout: |
| 69 | timeout: 240 |
| 70 | fail: true |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 71 | builders: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 72 | - shell: !include-raw: scripts/clone.sh |
| 73 | - shell: | |
| 74 | #!/bin/bash |
| 75 | set -e |
| 76 | cat << EOF > env.param |
| 77 | QA_SERVER_PROJECT=${JOB_NAME} |
| 78 | QA_SERVER_VERSION=${BUILD_NUMBER} |
| 79 | GERRIT_PROJECT=${TF_GERRIT_PROJECT} |
| 80 | GERRIT_BRANCH=${TF_GERRIT_BRANCH} |
| 81 | GERRIT_REFSPEC=${TF_GERRIT_REFSPEC} |
| 82 | EOF |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 83 | |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 84 | cd ${WORKSPACE} |
| 85 | # Executed project-related next checks: platform independent tests with a generic platform. |
| 86 | IS_CONTINUOUS_INTEGRATION=1 ${WORKSPACE}/tf-a-ci-scripts/script/next-checks/next-checks-generic-tests.sh ${TEST_REPO_PROJECT} ${TEST_REPO_NAME} |
Tomás González | 54d9801 | 2025-06-09 16:54:23 +0100 | [diff] [blame] | 87 | publishers: |
Chris Kay | 675db4f | 2025-06-24 14:14:34 +0100 | [diff] [blame] | 88 | - archive: |
| 89 | artifacts: next-generic-checks.log |
| 90 | # TODO: it is not possible to give this groovy script the |
| 91 | # auth/permissions required to access next-generic-checks.log |
| 92 | # * uncomment this once the job is made public |
| 93 | # * create the required postbuild.groovy file based on generic-lib-testing/postbuild.groovy |
| 94 | # - groovy-postbuild: |
| 95 | # script: |
| 96 | # !include-raw: |
| 97 | # - tf-a-generic-tfa-next/postbuild.groovy |