blob: f6db71616adae123c2867885d509cb89e4fa0f61 [file] [log] [blame]
Tomás González54d98012025-06-09 16:54:23 +01001- 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 Kay675db4f2025-06-24 14:14:34 +010010 - build-discarder:
11 days-to-keep: 14
Tomás González54d98012025-06-09 16:54:23 +010012 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010013 - 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ález54d98012025-06-09 16:54:23 +010029 tf-a-job-configs refspec to use. The master branch is used by default.
Chris Kay675db4f2025-06-24 14:14:34 +010030 - string:
31 name: FETCH_SSH
32 default: 1
33 description: |
Tomás González54d98012025-06-09 16:54:23 +010034 Fetch branches with authenticated SSH instead of anonymous HTTPS
Chris Kay675db4f2025-06-24 14:14:34 +010035 - string:
36 name: GERRIT_BRANCH
37 default: ""
38 - string:
39 name: CLONE_REPOS
40 default: tf-a-ci-scripts
41 description: |
Tomás González54d98012025-06-09 16:54:23 +010042 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 Kay675db4f2025-06-24 14:14:34 +010043 - string:
44 name: JOBS_REFSPEC
45 default: refs/heads/master
46 description: |
Tomás González54d98012025-06-09 16:54:23 +010047 tf-a-job-configs refspec to use. The master branch is used by default.
Chris Kay675db4f2025-06-24 14:14:34 +010048 - 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ález54d98012025-06-09 16:54:23 +010060 wrappers:
Chris Kay675db4f2025-06-24 14:14:34 +010061 - 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ález54d98012025-06-09 16:54:23 +010071 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010072 - 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ález54d98012025-06-09 16:54:23 +010083
Chris Kay675db4f2025-06-24 14:14:34 +010084 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ález54d98012025-06-09 16:54:23 +010087 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +010088 - 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