blob: ea66e53624f5ec575c39ba0d328c17b466119159 [file] [log] [blame]
Zack Williamsc1d6a5e2019-05-06 16:35:58 -07001---
2# synopsys license check job
3# Check for license issues with the Synopsys "Black Duck" tool
4
5- job-template:
Zack Williams3bf60d52019-06-07 12:56:10 -07006 id: 'synopsys-periodic-check'
7 name: 'synopsys-periodic-check_{blackduck-project}'
Zack Williamsc1d6a5e2019-05-06 16:35:58 -07008
9 description: |
Zack Williams3bf60d52019-06-07 12:56:10 -070010 Periodic merge check of code with synopsys toolset
Zack Williamsc1d6a5e2019-05-06 16:35:58 -070011 Created by {id} job-template from ci-management/jjb/synopsys-check.yaml<br/>
12 Copyright (c) 2018-present Open Networking Foundation (ONF)
13
14 properties:
15 - cord-infra-properties:
16 build-days-to-keep: '{build-days-to-keep}'
17 artifact-num-to-keep: '{artifact-num-to-keep}'
18
19 wrappers:
20 - lf-infra-wrappers:
21 build-timeout: '{build-timeout}'
22 jenkins-ssh-credential: '{jenkins-ssh-credential}'
23
24 parameters:
25 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070026 name: buildNode
hwchiu14f97852019-10-08 10:51:11 -070027 default: '{build-node}'
28 description: 'Name of the Jenkins node to run the job on'
Zack Williamsc1d6a5e2019-05-06 16:35:58 -070029
30 - string:
hwchiu14f97852019-10-08 10:51:11 -070031 name: branch
32 default: 'master'
33 description: 'branch to check'
Zack Williamsc1d6a5e2019-05-06 16:35:58 -070034
35 - string:
hwchiu14f97852019-10-08 10:51:11 -070036 name: git_server_url
37 default: '{git-server-url}'
38 description: 'Git Server URL'
Zack Williamsc1d6a5e2019-05-06 16:35:58 -070039
40 - string:
hwchiu14f97852019-10-08 10:51:11 -070041 name: github_organization
42 default: '{github-organization}'
43 description: 'GitHub Organization (leave blank if using Gerrit)'
Zack Williamsc1d6a5e2019-05-06 16:35:58 -070044
45 - string:
hwchiu14f97852019-10-08 10:51:11 -070046 name: blackduck_project
47 default: '{blackduck-project}'
48 description: 'The project to assign repos to in the BlackDuck dashboard'
Zack Williamsc1d6a5e2019-05-06 16:35:58 -070049
50 project-type: pipeline
51 concurrent: true
52
53 dsl: !include-raw-escape: pipeline/synopsys-check.groovy
54
55 triggers:
hwchiu14f97852019-10-08 10:51:11 -070056 - timed: |
Zack Williamsc1d6a5e2019-05-06 16:35:58 -070057 TZ=America/Los_Angeles
58 H 3 * * *
Zack Williams3bf60d52019-06-07 12:56:10 -070059
60
61- job-template:
62 id: 'synopsys-merge-check'
63 name: 'synopsys-merge-check_{blackduck-project}'
64
65 description: |
66 Post-merge check of code with synopsys toolset
67 Created by {id} job-template from ci-management/jjb/synopsys-check.yaml<br/>
68 Copyright (c) 2018-present Open Networking Foundation (ONF)
69
70 triggers:
71 - cord-infra-gerrit-trigger-merge:
72 gerrit-server-name: '{gerrit-server-name}'
73 project-regexp: '{all-projects-regexp}'
74 branch-regexp: '{all-branches-regexp}'
75 file-include-regexp: '{all-files-regexp}'
76 dependency-jobs: '{dependency-jobs}'
77
78 properties:
79 - cord-infra-properties:
80 build-days-to-keep: '{build-days-to-keep}'
81 artifact-num-to-keep: '{artifact-num-to-keep}'
82
83 wrappers:
84 - lf-infra-wrappers:
Zack Williamsf5d9ef52019-09-18 06:42:55 -070085 build-timeout: '60'
Zack Williams3bf60d52019-06-07 12:56:10 -070086 jenkins-ssh-credential: '{jenkins-ssh-credential}'
87
88 parameters:
89 - string:
Zack Williamsb3292082019-10-11 17:15:18 -070090 name: buildNode
hwchiu14f97852019-10-08 10:51:11 -070091 default: '{build-node}'
92 description: 'Name of the Jenkins node to run the job on'
Zack Williams3bf60d52019-06-07 12:56:10 -070093
94 - string:
95 name: gitUrl
96 default: '{gerrit-server-url}/$GERRIT_PROJECT'
97 description: 'URL to the git repo'
98
99 - string:
100 name: gitRef
101 default: '$GERRIT_PATCHSET_REVISION'
102 description: 'git ref to build (commit hash or tag)'
103
104 - string:
105 name: projectName
106 default: '$GERRIT_PROJECT'
107 description: 'Name of the project in Gerrit'
108
109 - string:
110 name: branchName
111 default: '$GERRIT_BRANCH'
112 description: 'Branch of the project in Gerrit'
113
114 - string:
hwchiu14f97852019-10-08 10:51:11 -0700115 name: blackduck_project
116 default: '{blackduck-project}'
117 description: 'The project to assign repos to in the BlackDuck dashboard'
Zack Williams3bf60d52019-06-07 12:56:10 -0700118
119 project-type: pipeline
120 concurrent: true
121
122 dsl: !include-raw-escape: pipeline/synopsys-single.groovy