blob: 0a236a81bf561633a7f4315ebe3d9c276a2d137f [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:
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: CI_REFSPEC
24 default: 'refs/changes/58/39058/5'
25 - string:
26 name: JOBS_REFSPEC
27 default: 'refs/heads/master'
28 description: |
29 tf-a-job-configs refspec to use. The master branch is used by default.
30 - string:
31 name: FETCH_SSH
32 default: 1
33 description: |
34 Fetch branches with authenticated SSH instead of anonymous HTTPS
35 - string:
36 name: GERRIT_BRANCH
37 default: ''
38 - string:
39 name: CLONE_REPOS
40 default: "tf-a-ci-scripts"
41 description: |
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.)
43 - string:
44 name: JOBS_REFSPEC
45 default: 'refs/heads/master'
46 description: |
47 tf-a-job-configs refspec to use. The master branch is used by default.
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'
60 wrappers:
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
71 builders:
72 - shell:
73 !include-raw: scripts/clone.sh
74 - shell: |
75 #!/bin/bash
76 set -e
77 cat << EOF > env.param
78 QA_SERVER_PROJECT=${JOB_NAME}
79 QA_SERVER_VERSION=${BUILD_NUMBER}
80 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
81 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
82 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
83 EOF
84
85 cd ${WORKSPACE}
86 # Executed project-related next checks: platform independent tests with a generic platform.
87 IS_CONTINUOUS_INTEGRATION=1 ${WORKSPACE}/tf-a-ci-scripts/script/next-checks/next-checks-generic-tests.sh ${TEST_REPO_PROJECT} ${TEST_REPO_NAME}
88 publishers:
89 - archive:
90 artifacts: 'next-generic-checks.log'
91 # TODO: it is not possible to give this groovy script the
92 # auth/permissions required to access next-generic-checks.log
93 # * uncomment this once the job is made public
94 # * create the required postbuild.groovy file based on generic-lib-testing/postbuild.groovy
95 # - groovy-postbuild:
96 # script:
97 # !include-raw:
98 # - tf-a-generic-tfa-next/postbuild.groovy