blob: 06341693782407a8f2710b295110e5706d72f569 [file] [log] [blame]
Zachary Leaf09235922024-11-01 17:52:16 +00001- 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 Babub495f032025-01-21 23:01:11 +000035 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 Leaf09235922024-11-01 17:52:16 +000040 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'
Tomás Gonzálezaa6220b2025-06-24 17:32:50 +010046 - string:
47 name: CLONE_REPOS
48 default: "tf-a-ci-scripts,trusted-firmware-a"
49 description: |
50 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)
51 - string:
52 name: FETCH_SSH
53 default: 1
54 description: |
55 Fetch branches with authenticated SSH instead of anonymous HTTPS
Zachary Leaf09235922024-11-01 17:52:16 +000056 wrappers:
57 - credentials-binding:
58 - ssh-user-private-key:
59 credential-id: TFA_CI_BOT_USER_SSH_KEY
60 key-file-variable: CI_BOT_KEY
61 username-variable: CI_BOT_USERNAME
62 passphrase-variable: ''
63 - timestamps
64 - timeout:
65 timeout: 240
66 fail: true
67 builders:
68 - shell:
69 !include-raw: scripts/clone.sh
70 - shell: |
71 #!/bin/bash
72 set -e
73 cat << EOF > env.param
74 QA_SERVER_PROJECT=${JOB_NAME}
75 QA_SERVER_VERSION=${BUILD_NUMBER}
76 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
77 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
78 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
79 EOF
80 cd ${WORKSPACE}/trusted-firmware-a
81 # Executed project-related static checks: copyright, unix line endings,
82 # formatting and lints
83 IS_CONTINUOUS_INTEGRATION=1 ${WORKSPACE}/tf-a-ci-scripts/script/next-checks/next-checks.sh
84 publishers:
85 - archive:
86 artifacts: 'trusted-firmware-a/next-checks.log'
87 # TODO: it is not possible to give this groovy script the
88 # auth/permissions required to access next-checks.log
89 # uncomment this once the job is made public
90 # - groovy-postbuild:
91 # script:
92 # !include-raw:
93 # - tf-a-static-tfa-next/postbuild.groovy