blob: d6bd648ab76a7723ee4d6eccb29ba34084b6b05c [file] [log] [blame]
Brian O'Connor9fbe7722017-10-27 12:44:04 -07001---
2
3- job_boiler_plate: &job_boiler_plate
4 name: job-boiler-plate
5
6 project-type: freestyle
7 node: '{build-node}'
8
9 ######################
10 # Default parameters #
11 ######################
12
13 branch: master
14 submodule-recursive: true
15 git-url: '$GIT_URL/$GERRIT_PROJECT'
16
17 #####################
18 # Job Configuration #
19 #####################
20
21 properties:
22 - lf-infra-properties:
23 project: '{project}'
24 build-days-to-keep: '{build-days-to-keep}'
25 #- github:
26 # url: '{git-url}/{github-org}/{project}'
27
28 parameters:
29 - lf-infra-parameters:
30 project: '{project}'
31 branch: '{branch}'
32 stream: '{stream}'
33 lftools-version: '{lftools-version}'
34
35 wrappers:
36 - lf-infra-wrappers:
37 build-timeout: '{build-timeout}'
38 jenkins-ssh-credential: '{jenkins-ssh-credential}'
39
40
41- verify_boiler_plate: &verify_boiler_plate
42 name: verify_boiler_plate
43
44 concurrent: true
45
46 scm:
Brian O'Connore78aff62017-10-30 14:08:51 -070047 - lf-infra-gerrit-scm:
48 git-url: '{git-url}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070049 refspec: '$GERRIT_REFSPEC'
50 branch: '$GERRIT_BRANCH'
51 submodule-recursive: '{submodule-recursive}'
Brian O'Connore78aff62017-10-30 14:08:51 -070052 choosing-strategy: gerrit
Brian O'Connor9fbe7722017-10-27 12:44:04 -070053 jenkins-ssh-credential: '{jenkins-ssh-credential}'
54
55 triggers:
56 - gerrit:
57 #server-name: '{gerrit-server-name}'
58 server-name: 'ONOS Project Gerrit'
59 #trigger-on: '{obj:gerrit_verify_triggers}'
60 trigger-on:
61 - patchset-created-event:
62 exclude-drafts: true
63 exclude-trivial-rebase: false
64 exclude-no-code-change: true
65 - draft-published-event
Brian O'Connoredd87412017-10-30 19:27:08 -070066 - comment-added-contains-event:
67 comment-contains-value: '(?i)^.*recheck$'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070068 projects:
69 - project-compare-type: PLAIN
Ray Milkey20beeae2017-10-31 15:26:10 -070070 project-pattern: '{project}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070071 branches:
72 - branch-compare-type: ANT
Ray Milkey1bc13772017-10-31 15:57:17 -070073 branch-pattern: '**/{branch}'
Ray Milkeyc0c94f52017-10-30 17:36:14 -070074 #file-paths: '{obj:gerrit_trigger_file_paths}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070075
76- job-template:
77 #default name is global
78 name: '{project-name}-{stream}-verify'
79
80 # Job template for Java verify jobs
81 #
82 # The purpose of this job templte is to run "maven clean install" for
83 # projects using this template.
84 #
85 # Required Variables:
86 # branch: git branch (eg. master)
87
88 <<: *job_boiler_plate
89 # yamllint disable-line rule:key-duplicates
90 <<: *verify_boiler_plate
91
92 builders:
93 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkey7aa43462017-10-30 16:15:23 -070094 - shell: !include-raw-escape: onos-verify.sh
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -070095 # JJB 1.6.2 does not support parameter expansion on filename?
96 #- shell: !include-raw-escape: {project-name}-verify.sh
97
98# workaround for lack of parameter expansion support in shell: (see above)
99- job-template:
100 #default name is global
101 name: 'onos-yang-tools-{stream}-verify'
102
103 # Job template for Java verify jobs
104 #
105 # The purpose of this job templte is to run "maven clean install" for
106 # projects using this template.
107 #
108 # Required Variables:
109 # branch: git branch (eg. master)
110
111 <<: *job_boiler_plate
112 # yamllint disable-line rule:key-duplicates
113 <<: *verify_boiler_plate
114
115 builders:
116 #put shell scripts in file then make sure shell check is installed on verify vms
117 - shell: !include-raw-escape: onos-yang-tools-verify.sh
118
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700119
120- project:
121 name: onos
122 project-name: onos
123 project: onos
124
125 build-timeout: '1800'
126 build-node: 'ubuntu16.04-basebuild-8c-15g'
127
128 stream:
129 - 'master'
Ray Milkey1bc13772017-10-31 15:57:17 -0700130 - 'onos-1.10'
131 - 'onos-1.11'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700132
133 jobs:
134 - '{project-name}-{stream}-verify'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700135
136- project:
137 name: onos-yang-tools
138 project-name: onos-yang-tools
139 project: onos-yang-tools
140
141 build-timeout: '1800'
142 build-node: 'ubuntu16.04-basebuild-8c-15g'
143
144 stream:
145 - 'master'
146
147 jobs:
148 - 'onos-yang-tools-{stream}-verify'