Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 1 | --- |
| 2 | # synopsys license check job |
| 3 | # Check for license issues with the Synopsys "Black Duck" tool |
| 4 | |
| 5 | - job-template: |
Zack Williams | 3bf60d5 | 2019-06-07 12:56:10 -0700 | [diff] [blame] | 6 | id: 'synopsys-periodic-check' |
| 7 | name: 'synopsys-periodic-check_{blackduck-project}' |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 8 | |
| 9 | description: | |
Zack Williams | 3bf60d5 | 2019-06-07 12:56:10 -0700 | [diff] [blame] | 10 | Periodic merge check of code with synopsys toolset |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 11 | 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 Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 26 | name: buildNode |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 27 | default: '{build-node}' |
| 28 | description: 'Name of the Jenkins node to run the job on' |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 29 | |
| 30 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 31 | name: branch |
| 32 | default: 'master' |
| 33 | description: 'branch to check' |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 34 | |
| 35 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 36 | name: git_server_url |
| 37 | default: '{git-server-url}' |
| 38 | description: 'Git Server URL' |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 39 | |
| 40 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 41 | name: github_organization |
| 42 | default: '{github-organization}' |
| 43 | description: 'GitHub Organization (leave blank if using Gerrit)' |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 44 | |
| 45 | - string: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 46 | name: blackduck_project |
| 47 | default: '{blackduck-project}' |
| 48 | description: 'The project to assign repos to in the BlackDuck dashboard' |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 49 | |
| 50 | project-type: pipeline |
| 51 | concurrent: true |
| 52 | |
| 53 | dsl: !include-raw-escape: pipeline/synopsys-check.groovy |
| 54 | |
| 55 | triggers: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 56 | - timed: | |
Zack Williams | c1d6a5e | 2019-05-06 16:35:58 -0700 | [diff] [blame] | 57 | TZ=America/Los_Angeles |
| 58 | H 3 * * * |
Zack Williams | 3bf60d5 | 2019-06-07 12:56:10 -0700 | [diff] [blame] | 59 | |
| 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 Williams | f5d9ef5 | 2019-09-18 06:42:55 -0700 | [diff] [blame] | 85 | build-timeout: '60' |
Zack Williams | 3bf60d5 | 2019-06-07 12:56:10 -0700 | [diff] [blame] | 86 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 87 | |
| 88 | parameters: |
| 89 | - string: |
Zack Williams | b329208 | 2019-10-11 17:15:18 -0700 | [diff] [blame] | 90 | name: buildNode |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 91 | default: '{build-node}' |
| 92 | description: 'Name of the Jenkins node to run the job on' |
Zack Williams | 3bf60d5 | 2019-06-07 12:56:10 -0700 | [diff] [blame] | 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: |
hwchiu | 14f9785 | 2019-10-08 10:51:11 -0700 | [diff] [blame] | 115 | name: blackduck_project |
| 116 | default: '{blackduck-project}' |
| 117 | description: 'The project to assign repos to in the BlackDuck dashboard' |
Zack Williams | 3bf60d5 | 2019-06-07 12:56:10 -0700 | [diff] [blame] | 118 | |
| 119 | project-type: pipeline |
| 120 | concurrent: true |
| 121 | |
| 122 | dsl: !include-raw-escape: pipeline/synopsys-single.groovy |