blob: e3c4760fb605d35f8f99483442aff371f3d69d93 [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:
Chris Kay675db4f2025-06-24 14:14:34 +010010 - build-discarder:
11 days-to-keep: 14
Zachary Leaf09235922024-11-01 17:52:16 +000012 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: 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:
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:
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 - 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:
Chris Kay675db4f2025-06-24 14:14:34 +010057 - 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
Zachary Leaf09235922024-11-01 17:52:16 +000067 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010068 - shell: !include-raw: scripts/clone.sh
69 - shell: |
70 #!/bin/bash
71 set -e
72 cat << EOF > env.param
73 QA_SERVER_PROJECT=${JOB_NAME}
74 QA_SERVER_VERSION=${BUILD_NUMBER}
75 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
76 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
77 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
78 EOF
79 cd ${WORKSPACE}/trusted-firmware-a
80 # Executed project-related static checks: copyright, unix line endings,
81 # formatting and lints
82 IS_CONTINUOUS_INTEGRATION=1 ${WORKSPACE}/tf-a-ci-scripts/script/next-checks/next-checks.sh
Zachary Leaf09235922024-11-01 17:52:16 +000083 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +010084 - archive:
85 artifacts: trusted-firmware-a/next-checks.log
86 # TODO: it is not possible to give this groovy script the
87 # auth/permissions required to access next-checks.log
88 # uncomment this once the job is made public
89 # - groovy-postbuild:
90 # script:
91 # !include-raw:
92 # - tf-a-static-tfa-next/postbuild.groovy