blob: 38fe47e64f847d722c5ab1db317ef4647e19ed3b [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 Williamsf2ec8992019-11-04 11:54:48 -070025# # replace with cord-infra-gerrit-trigger-patchset when skip-vote is removed
26# triggers:
27# - gerrit:
28# server-name: '{gerrit-server-name}'
29# dependency-jobs: '{dependency-jobs}'
30# silent-start: true
31# trigger-on:
32# - patchset-created-event:
33# exclude-drafts: true
34# exclude-trivial-rebase: false
35# exclude-no-code-change: true
36# - draft-published-event
37# - comment-added-contains-event:
38# comment-contains-value: '(?i)^.*recheck$'
39# projects:
40# - project-compare-type: REG_EXP
41# project-pattern: '{project-regexp}'
42# branches:
43# - branch-compare-type: REG_EXP
44# branch-pattern: '{branch-regexp}'
45# file-paths:
46# - compare-type: REG_EXP
47# pattern: '{file-include-regexp}'
48# skip-vote:
49# success: true
50# failed: true
51# unstable: true
52# notbuilt: true
Zack Williams96e11462019-10-10 09:04:47 -070053
54 properties:
55 - cord-infra-properties:
56 build-days-to-keep: '{build-days-to-keep}'
57 artifact-num-to-keep: '{artifact-num-to-keep}'
58
59 wrappers:
60 - lf-infra-wrappers:
61 build-timeout: '15'
62 jenkins-ssh-credential: '{jenkins-ssh-credential}'
63 - credentials-binding:
64 - text:
65 credential-id: fossa-api-key
66 variable: FOSSA_API_KEY
67
68 parameters:
69 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070070 name: buildNode
Zack Williams96e11462019-10-10 09:04:47 -070071 default: '{build-node}'
72 description: 'Name of the Jenkins node to run the job on'
73
74 - string:
75 name: gitUrl
76 default: '{gerrit-server-url}/$GERRIT_PROJECT'
77 description: 'URL to the git repo'
78
79 - string:
80 name: gitRef
81 default: '$GERRIT_PATCHSET_REVISION'
82 description: 'git ref to build (commit hash or tag)'
83
84 - string:
85 name: projectName
86 default: '$GERRIT_PROJECT'
87 description: 'Name of the project in Gerrit'
88
89 - string:
90 name: branchName
91 default: '$GERRIT_BRANCH'
92 description: 'Branch of the project in Gerrit'
93
94 - string:
95 name: fossaTeam
96 default: '{fossa-team}'
97 description: 'Team to assign this project to in FOSSA'
98
99 project-type: pipeline
100 concurrent: true
101
102 dsl: !include-raw-escape: pipeline/fossa-verify.groovy