blob: b01d3cb947f75f186ff958ed2907275b3d1387ca [file] [log] [blame]
Leonardo Sandovalf187d072020-06-17 18:19:59 -05001- defaults:
2 name: global
3 gerrit-project: 'TF-A/trusted-firmware-a'
4 gerrit-branch: 'master'
5 gerrit-refspec: 'refs/heads/master'
Leonardo Sandovaleb141602020-07-13 14:21:20 -05006 days-to-keep: '180'
7 num-to-keep: '180'
Leonardo Sandovalf187d072020-06-17 18:19:59 -05008 exec-node: 'docker-amd64-xenial'
9
10- scm:
11 name: tf-a-ci-scripts
12 scm:
13 - git:
14 url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
15 refspec: +refs/heads/master:refs/remotes/origin/master
16 name: origin
17 branches:
18 - refs/heads/master
19 basedir: tf-a-ci-scripts
20 skip-tag: true
21 shallow-clone: true
22 wipe-workspace: false
23- scm:
24 name: trusted-firmware-a
25 scm:
26 - git:
27 url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
28 refspec: ${GERRIT_REFSPEC}
29 name: origin
30 branches:
31 - ${GERRIT_BRANCH}
32 basedir: trusted-firmware-a
33 skip-tag: true
34 shallow-clone: true
35 wipe-workspace: false
36
37
38- job-template:
39 name: '{name}-{static}'
40 project-type: freestyle
41 defaults: global
42 properties:
43 - build-discarder:
44 days-to-keep: '{days-to-keep}'
45 num-to-keep: '{num-to-keep}'
46 parameters:
47 - string:
48 name: GERRIT_PROJECT
49 default: '{gerrit-project}'
50 - string:
51 name: GERRIT_BRANCH
52 default: '{gerrit-branch}'
53 - string:
54 name: GERRIT_REFSPEC
55 default: '{gerrit-refspec}'
56 disabled: false
57 node: '{exec-node}'
58 display-name: 'Trusted Firmware A (TF-A) {static}'
59 scm:
60 - tf-a-ci-scripts
61 - trusted-firmware-a
62 wrappers:
63 - timestamps
64
65 builders:
66 - shell: |
67 #!/bin/bash
68 set -e
69 cd "${{WORKSPACE}}/trusted-firmware-a"
70 "${{WORKSPACE}}/tf-a-ci-scripts/{check-script}"
71 cd -
72 publishers:
73 - archive:
74 artifacts: 'artefacts/**'
75 latest-only: false
76
77- project:
78 name: tf-a-static
79 static:
80 - cppcheck:
81 check-script: "script/static-checks/static-checks-cppcheck.sh"
82 - arm-checks:
83 check-script: "script/static-checks/static-checks.sh"
Leonardo Sandoval4edecb12020-06-24 11:23:09 -050084 - tf-coverity:
85 check-script: "script/tf-coverity/run_coverity_on_tf.py --tf $(pwd)"
Leonardo Sandovalf187d072020-06-17 18:19:59 -050086 jobs:
87 - '{name}-{static}'