Zack Williams | 96e1146 | 2019-10-10 09:04:47 -0700 | [diff] [blame] | 1 | --- |
| 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 Williams | a59b29c | 2019-10-10 09:54:01 -0700 | [diff] [blame] | 11 | project-regexp: '{all-projects-regexp}' |
| 12 | branch-regexp: '{all-branches-regexp}' |
| 13 | file-include-regexp: '{all-files-regexp}' |
| 14 | |
Zack Williams | 96e1146 | 2019-10-10 09:04:47 -0700 | [diff] [blame] | 15 | |
| 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/> |
Joey Armstrong | 775a20f | 2022-12-02 12:55:43 -0500 | [diff] [blame] | 23 | Copyright 2018-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Zack Williams | 96e1146 | 2019-10-10 09:04:47 -0700 | [diff] [blame] | 24 | |
Zack Williams | 96e1146 | 2019-10-10 09:04:47 -0700 | [diff] [blame] | 25 | 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 Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 41 | name: buildNode |
Zack Williams | 96e1146 | 2019-10-10 09:04:47 -0700 | [diff] [blame] | 42 | 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 |