blob: 97603e174b1660867438c428673ca0db338b29b4 [file] [log] [blame]
Ray Milkeyd61caa92019-03-07 15:43:25 -08001---
2
3- routing_job_boiler_plate: &routing_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
Ray Milkeyd61caa92019-03-07 15:43:25 -080014 git-url: '$GIT_URL/$GERRIT_PROJECT'
15
16 #####################
17 # Job Configuration #
18 #####################
19
20 properties:
21 - lf-infra-properties:
22 project: '{project}'
23 build-days-to-keep: '{build-days-to-keep}'
24 #- github:
25 # url: '{git-url}/{github-org}/{project}'
26
27 parameters:
28 - lf-infra-parameters:
29 project: '{project}'
30 branch: '{stream}'
31 stream: '{stream}'
32 lftools-version: '{lftools-version}'
33
34 wrappers:
35 - lf-infra-wrappers:
36 build-timeout: '{build-timeout}'
37 jenkins-ssh-credential: '{jenkins-ssh-credential}'
38
39
40- routing_verify_boiler_plate: &routing_verify_boiler_plate
41 name: routing_verify_boiler_plate
42
43 concurrent: true
44
45 scm:
46 - lf-infra-gerrit-scm:
47 git-url: '{git-url}'
48 refspec: '$GERRIT_REFSPEC'
49 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -070050 submodule-disable: '{submodule-disable}'
Ray Milkeyd61caa92019-03-07 15:43:25 -080051 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -070052 submodule-timeout: '{submodule-timeout}'
Ray Milkeyd61caa92019-03-07 15:43:25 -080053 choosing-strategy: gerrit
54 jenkins-ssh-credential: '{jenkins-ssh-credential}'
55
56 triggers:
57 - gerrit:
58 #server-name: '{gerrit-server-name}'
59 server-name: 'ONOS Project Gerrit'
60 #trigger-on: '{obj:gerrit_verify_triggers}'
61 trigger-on:
62 - patchset-created-event:
63 exclude-drafts: true
64 exclude-trivial-rebase: false
65 exclude-no-code-change: true
66 - draft-published-event: true
67 - comment-added-contains-event:
68 comment-contains-value: '(?i)^.*recheck$'
69 projects:
70 - project-compare-type: PLAIN
71 project-pattern: '{project}'
72 branches:
73 - branch-compare-type: ANT
74 branch-pattern: '**/{stream}'
75 #file-paths: '{obj:gerrit_trigger_file_paths}'
76
77
78- job-template:
79 #default name is global
80 name: '{project-name}-{stream}-routing-verify'
81
82 # Job template for Java verify jobs
83 #
84 # The purpose of this job templte is to run "maven clean install" for
85 # projects using this template.
86 #
87 # Required Variables:
88 # branch: git branch (eg. master)
89
90 <<: *routing_job_boiler_plate
91 # yamllint disable-line rule:key-duplicates
92 <<: *routing_verify_boiler_plate
93
94 builders:
95 #put shell scripts in file then make sure shell check is installed on verify vms
96 - shell: !include-raw-escape: routing-verify.sh
97
98- project:
99 name: routing
100 project-name: routing
101 project: routing
102
103 build-timeout: '30'
104 build-node: 'ubuntu16.04-basebuild-8c-15g'
105
106 stream:
107 - 'master'
108
109 jobs:
110 - '{project-name}-{stream}-routing-verify'
111
112