blob: 5ea09d0c78d21ab1144f2431655bac8c41a80d88 [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:
35 name: GERRIT_BRANCH
36 default: ''
37 - string:
38 name: SHARE_FOLDER
39 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
40 description: 'Folder containing shared repositories for downstream pipeline jobs'
41 wrappers:
42 - credentials-binding:
43 - ssh-user-private-key:
44 credential-id: TFA_CI_BOT_USER_SSH_KEY
45 key-file-variable: CI_BOT_KEY
46 username-variable: CI_BOT_USERNAME
47 passphrase-variable: ''
48 - timestamps
49 - timeout:
50 timeout: 240
51 fail: true
52 builders:
53 - shell:
54 !include-raw: scripts/clone.sh
55 - shell: |
56 #!/bin/bash
57 set -e
58 cat << EOF > env.param
59 QA_SERVER_PROJECT=${JOB_NAME}
60 QA_SERVER_VERSION=${BUILD_NUMBER}
61 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
62 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
63 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
64 EOF
65 cd ${WORKSPACE}/trusted-firmware-a
66 # Executed project-related static checks: copyright, unix line endings,
67 # formatting and lints
68 IS_CONTINUOUS_INTEGRATION=1 ${WORKSPACE}/tf-a-ci-scripts/script/next-checks/next-checks.sh
69 publishers:
70 - archive:
71 artifacts: 'trusted-firmware-a/next-checks.log'
72 # TODO: it is not possible to give this groovy script the
73 # auth/permissions required to access next-checks.log
74 # uncomment this once the job is made public
75 # - groovy-postbuild:
76 # script:
77 # !include-raw:
78 # - tf-a-static-tfa-next/postbuild.groovy