blob: 06aea35c36bab2c827c4be745b5e67b5b8dd6661 [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
Leonardo Sandoval46226da2021-01-15 13:55:56 -060027- job:
28 name: tf-static-checks
29 node: docker-amd64-tf-a-bionic
30 project-type: freestyle
31 concurrent: true
32 disabled: false
33 defaults: global
34 description: Run static checks on Git repository
35 properties:
36 - build-discarder:
37 days-to-keep: 7
38 - authorization:
39 anonymous:
40 - job-discover
41 - job-read
42 - job-extended-read
43 - job-workspace
44 lsandov1:
45 - job-read
46 - job-extended-read
47 - job-build
48 - job-cancel
49 - run-update
50 parameters:
51 - string:
52 name: TF_GERRIT_PROJECT
53 default: 'TF-A/trusted-firmware-a'
54 - string:
55 name: TF_GERRIT_BRANCH
56 default: 'refs/heads/master'
57 - string:
58 name: TF_GERRIT_REFSPEC
59 default: '+refs/heads/master:refs/remotes/origin/master'
60 scm:
61 - tf-a-ci-scripts
62 - trusted-firmware-a
63 wrappers:
64 - timestamps
65 - timeout:
66 timeout: 180
67 fail: true
68 builders:
69 - shell: |
70 #!/bin/bash
71 set -e
Leonardo Sandoval46226da2021-01-15 13:55:56 -060072 cat > env.param << EOF
73 GERRIT_PROJECT=${TF_GERRIT_PROJECT}
74 GERRIT_BRANCH=${TF_GERRIT_BRANCH}
75 GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
76 QA_SERVER_PROJECT=${JOB_NAME}
77 QA_SERVER_VERSION=${BUILD_NUMBER}
78 EOF
Leonardo Sandoval46226da2021-01-15 13:55:56 -060079 cd ${WORKSPACE}/trusted-firmware-a
Leonardo Sandoval46226da2021-01-15 13:55:56 -060080 # Executed project-related static checks: copyright presence, headers in alphabetical order,
81 # line endings, coding style and banned API.
82 IS_CONTINUOUS_INTEGRATION=1 ${WORKSPACE}/tf-a-ci-scripts/script/static-checks/static-checks.sh
Leonardo Sandoval46226da2021-01-15 13:55:56 -060083 - trigger-builds:
84 - project: tf-ci-gateway
85 block: false
86 # Execute Clang static analyzer (scan-build)
87 predefined-parameters: TEST_GROUPS=tf-l2-scan-build
88 property-file: env.param
Leonardo Sandoval46226da2021-01-15 13:55:56 -060089 publishers:
90 - archive:
91 artifacts: 'trusted-firmware-a/static-checks.log'
92 - groovy-postbuild:
93 script:
94 !include-raw:
95 - tf-static-checks/postbuild.groovy