blob: 4f9145eee1181f6b046de39f3766acd2247a9f40 [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:
26 name: executorNode
27 default: '{build-node}'
28 description: 'Name of the Jenkins node to run the job on'
29
30 - string:
31 name: branch
32 default: 'master'
33 description: 'branch to check'
34
35 - string:
36 name: git_server_url
Zack Williamsb92f5d82019-05-06 22:16:40 -070037 default: '{git-server-url}'
Zack Williamsc1d6a5e2019-05-06 16:35:58 -070038 description: 'Git Server URL'
39
40 - string:
41 name: github_organization
42 default: '{github-organization}'
43 description: 'GitHub Organization (leave blank if using Gerrit)'
44
45 - string:
46 name: blackduck_project
47 default: '{blackduck-project}'
48 description: 'The project to assign repos to in the BlackDuck dashboard'
49
50 project-type: pipeline
51 concurrent: true
52
53 dsl: !include-raw-escape: pipeline/synopsys-check.groovy
54
55 triggers:
56 - timed: |
57 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:
90 name: executorNode
91 default: '{build-node}'
92 description: 'Name of the Jenkins node to run the job on'
93
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:
115 name: blackduck_project
116 default: '{blackduck-project}'
117 description: 'The project to assign repos to in the BlackDuck dashboard'
118
119 project-type: pipeline
120 concurrent: true
121
122 dsl: !include-raw-escape: pipeline/synopsys-single.groovy