blob: acfa347bedc34db621b470834827cdad3747c83a [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
Zack Williamsa59b29c2019-10-10 09:54:01 -070011 project-regexp: '{all-projects-regexp}'
12 branch-regexp: '{all-branches-regexp}'
13 file-include-regexp: '{all-files-regexp}'
14
Zack Williams96e11462019-10-10 09:04:47 -070015
16- job-template:
17 id: 'fossa-verify'
18 name: 'verify_fossa_{fossa-team}'
19
20 description: |
21 Post-merge check of code with fossa toolset
22 Created by {id} job-template from ci-management/jjb/fossa.yaml<br/>
23 Copyright (c) 2018-present Open Networking Foundation (ONF)
24
Zack Williams96e11462019-10-10 09:04:47 -070025 properties:
26 - cord-infra-properties:
27 build-days-to-keep: '{build-days-to-keep}'
28 artifact-num-to-keep: '{artifact-num-to-keep}'
29
30 wrappers:
31 - lf-infra-wrappers:
32 build-timeout: '15'
33 jenkins-ssh-credential: '{jenkins-ssh-credential}'
34 - credentials-binding:
35 - text:
36 credential-id: fossa-api-key
37 variable: FOSSA_API_KEY
38
39 parameters:
40 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070041 name: buildNode
Zack Williams96e11462019-10-10 09:04:47 -070042 default: '{build-node}'
43 description: 'Name of the Jenkins node to run the job on'
44
45 - string:
46 name: gitUrl
47 default: '{gerrit-server-url}/$GERRIT_PROJECT'
48 description: 'URL to the git repo'
49
50 - string:
51 name: gitRef
52 default: '$GERRIT_PATCHSET_REVISION'
53 description: 'git ref to build (commit hash or tag)'
54
55 - string:
56 name: projectName
57 default: '$GERRIT_PROJECT'
58 description: 'Name of the project in Gerrit'
59
60 - string:
61 name: branchName
62 default: '$GERRIT_BRANCH'
63 description: 'Branch of the project in Gerrit'
64
65 - string:
66 name: fossaTeam
67 default: '{fossa-team}'
68 description: 'Team to assign this project to in FOSSA'
69
70 project-type: pipeline
71 concurrent: true
72
73 dsl: !include-raw-escape: pipeline/fossa-verify.groovy