blob: 061c106093cfab241c37c46dce886e80f6fdafad [file] [log] [blame]
Leonardo Sandoval46226da2021-01-15 13:55:56 -06001- scm:
2 name: tf-a-ci-scripts
3 scm:
4 - git:
5 url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
6 refspec: +refs/heads/master:refs/remotes/origin/master
7 name: origin
8 branches:
9 - refs/heads/master
10 basedir: tf-a-ci-scripts
11 skip-tag: true
12 shallow-clone: true
13 wipe-workspace: false
14- scm:
15 name: trusted-firmware-a
16 scm:
17 - git:
18 url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT}
19 refspec: ${TF_GERRIT_REFSPEC}
20 name: origin
21 branches:
22 - ${TF_GERRIT_BRANCH}
23 basedir: trusted-firmware-a
24 skip-tag: true
25 shallow-clone: false
26 wipe-workspace: false
27
28- job:
29 name: tf-static-checks
30 node: docker-amd64-tf-a-bionic
31 project-type: freestyle
32 concurrent: true
33 disabled: false
34 defaults: global
35 description: Run static checks on Git repository
36 properties:
37 - build-discarder:
38 days-to-keep: 7
39 - authorization:
40 anonymous:
41 - job-discover
42 - job-read
43 - job-extended-read
44 - job-workspace
45 lsandov1:
46 - job-read
47 - job-extended-read
48 - job-build
49 - job-cancel
50 - run-update
51 parameters:
52 - string:
53 name: TF_GERRIT_PROJECT
54 default: 'TF-A/trusted-firmware-a'
55 - string:
56 name: TF_GERRIT_BRANCH
57 default: 'refs/heads/master'
58 - string:
59 name: TF_GERRIT_REFSPEC
60 default: '+refs/heads/master:refs/remotes/origin/master'
61 scm:
62 - tf-a-ci-scripts
63 - trusted-firmware-a
64 wrappers:
65 - timestamps
66 - timeout:
67 timeout: 180
68 fail: true
69 builders:
70 - shell: |
71 #!/bin/bash
72 set -e
73
74 cat > env.param << EOF
75 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
76 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
77 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
78 QA_SERVER_PROJECT=${JOB_NAME}
79 QA_SERVER_VERSION=${BUILD_NUMBER}
80 EOF
81
82 cd ${WORKSPACE}/trusted-firmware-a
83
84 # Executed project-related static checks: copyright presence, headers in alphabetical order,
85 # line endings, coding style and banned API.
86 IS_CONTINUOUS_INTEGRATION=1 ${WORKSPACE}/tf-a-ci-scripts/script/static-checks/static-checks.sh
87
88 - trigger-builds:
89 - project: tf-ci-gateway
90 block: false
91 # Execute Clang static analyzer (scan-build)
92 predefined-parameters: TEST_GROUPS=tf-l2-scan-build
93 property-file: env.param
94
95 publishers:
96 - archive:
97 artifacts: 'trusted-firmware-a/static-checks.log'
98 - groovy-postbuild:
99 script:
100 !include-raw:
101 - tf-static-checks/postbuild.groovy