blob: d321b156f35cdb5655a2113bce6c33560da6bced [file] [log] [blame]
Zack Williams96e11462019-10-10 09:04:47 -07001---
2# fossa license check job
3# Check for license issues with the FOSSA tool
4
5- project:
6 name: fossa-verify
7
8 jobs:
9 - 'fossa-verify':
10 fossa-team: cord
11
12- job-template:
13 id: 'fossa-verify'
14 name: 'verify_fossa_{fossa-team}'
15
16 description: |
17 Post-merge check of code with fossa toolset
18 Created by {id} job-template from ci-management/jjb/fossa.yaml<br/>
19 Copyright (c) 2018-present Open Networking Foundation (ONF)
20
21 # template defaults
22 project-regexp: '{all-projects-regexp}'
23 branch-regexp: '{all-branches-regexp}'
24 file-include-regexp: '{all-files-regexp}'
25
26 # replace with cord-infra-gerrit-trigger-patchset when skip-vote is removed
27 triggers:
28 - gerrit:
29 server-name: '{gerrit-server-name}'
30 dependency-jobs: '{dependency-jobs}'
31 silent-start: true
32 trigger-on:
33 - patchset-created-event:
34 exclude-drafts: true
35 exclude-trivial-rebase: false
36 exclude-no-code-change: true
37 - draft-published-event
38 - comment-added-contains-event:
39 comment-contains-value: '(?i)^.*recheck$'
40 projects:
41 - project-compare-type: REG_EXP
42 project-pattern: '{project-regexp}'
43 branches:
44 - branch-compare-type: REG_EXP
45 branch-pattern: '{branch-regexp}'
46 file-paths:
47 - compare-type: REG_EXP
48 pattern: '{file-include-regexp}'
49 skip-vote:
50 success: true
51 failed: true
52 unstable: true
53 notbuilt: true
54
55 properties:
56 - cord-infra-properties:
57 build-days-to-keep: '{build-days-to-keep}'
58 artifact-num-to-keep: '{artifact-num-to-keep}'
59
60 wrappers:
61 - lf-infra-wrappers:
62 build-timeout: '15'
63 jenkins-ssh-credential: '{jenkins-ssh-credential}'
64 - credentials-binding:
65 - text:
66 credential-id: fossa-api-key
67 variable: FOSSA_API_KEY
68
69 parameters:
70 - string:
71 name: executorNode
72 default: '{build-node}'
73 description: 'Name of the Jenkins node to run the job on'
74
75 - string:
76 name: gitUrl
77 default: '{gerrit-server-url}/$GERRIT_PROJECT'
78 description: 'URL to the git repo'
79
80 - string:
81 name: gitRef
82 default: '$GERRIT_PATCHSET_REVISION'
83 description: 'git ref to build (commit hash or tag)'
84
85 - string:
86 name: projectName
87 default: '$GERRIT_PROJECT'
88 description: 'Name of the project in Gerrit'
89
90 - string:
91 name: branchName
92 default: '$GERRIT_BRANCH'
93 description: 'Branch of the project in Gerrit'
94
95 - string:
96 name: fossaTeam
97 default: '{fossa-team}'
98 description: 'Team to assign this project to in FOSSA'
99
100 project-type: pipeline
101 concurrent: true
102
103 dsl: !include-raw-escape: pipeline/fossa-verify.groovy