blob: 9dd5dce8b3da999864f471dc6e1a30c3ea217c1e [file] [log] [blame]
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -08001---
2# vim: sw=2 ts=2 sts=2 et :
3
4- job-template:
5 # Job template for basic scm and script trigger
6 #
7 # Required Variables:
8 # branch: git branch
9 # build-node: what build node to run on
10 # script: build script to execute
11
12 name: '{project-name}-{stream}-verify-script'
13
14 project-type: freestyle
15 concurrent: true
16 node: '{build-node}'
17
18 properties:
19 - ecomp-infra-properties:
20 build-days-to-keep: '{build-days-to-keep}'
21
22 parameters:
23 - ecomp-infra-parameters:
24 project: '{project}'
25 branch: '{branch}'
26 refspec: 'refs/heads/{branch}'
27 artifacts: '{archive-artifacts}'
28
29 scm:
30 - gerrit-trigger-scm:
31 refspec: '$GERRIT_REFSPEC'
32 choosing-strategy: 'gerrit'
33
34 wrappers:
35 - ecomp-infra-wrappers:
36 build-timeout: '{build-timeout}'
37
38 triggers:
39 - gerrit-trigger-patch-submitted:
40 server: '{server-name}'
41 project: '{project}'
42 branch: '{branch}'
43 files: '**'
44
45 builders:
46 - provide-maven-settings:
47 global-settings-file: 'global-settings'
48 settings-file: '{mvn-settings}'
49 # make sure maven gets installed / setup
50 - maven-target:
51 maven-version: 'mvn33'
52 goals: '--version'
53 settings: '{mvn-settings}'
54 settings-type: cfp
55 global-settings: 'global-settings'
56 global-settings-type: cfp
57 - shell: '{script}'
58
59# publishers:
60# - ecomp-infra-shiplogs:
61# maven-version: 'mvn33'
62
63- job-template:
64 # Job template for 2 scm and script trigger
65 #
66 # Required Variables:
67 # branch: git branch
68 # build-node: what build node to run on
69 # script: build script to execute
70 # extra-project: extra gerrit project to checkout
71 # extra-refspec: refspec for the extra project
72 # extra-branch: branch to checkout for the extra project
73 # checkout-dir: directory to checkout the extra project to
74 # DO NOT SET THIS TO anything that translates to
75 # $WORKSPACE as it will destroy the initial
76 # project checkout
77
78 name: '{project-name}-{stream}-multi-scm-verify-script'
79
80 project-type: freestyle
81 concurrent: true
82 node: '{build-node}'
83
84 properties:
85 - ecomp-infra-properties:
86 build-days-to-keep: '{build-days-to-keep}'
87
88 parameters:
89 - ecomp-infra-parameters:
90 project: '{project}'
91 branch: '{branch}'
92 refspec: 'refs/heads/{branch}'
93 artifacts: '{archive-artifacts}'
94
95 scm:
96 - gerrit-trigger-scm:
97 refspec: '$GERRIT_REFSPEC'
98 choosing-strategy: 'gerrit'
99 - git-extra-project:
100 project: '{extra-project}'
101 refspec: '{extra-refspec}'
102 branch: '{extra-branch}'
103 checkout-dir: '{checkout-dir}'
104
105 wrappers:
106 - ecomp-infra-wrappers:
107 build-timeout: '{build-timeout}'
108
109 triggers:
110 - gerrit-trigger-patch-submitted:
111 server: '{server-name}'
112 project: '{project}'
113 branch: '{branch}'
114 files: '**'
115
116 builders:
117 - provide-maven-settings:
118 global-settings-file: 'global-settings'
119 settings-file: '{mvn-settings}'
120 # make sure maven gets installed / setup
121 - maven-target:
122 maven-version: 'mvn33'
123 goals: '--version'
124 settings: '{mvn-settings}'
125 settings-type: cfp
126 global-settings: 'global-settings'
127 global-settings-type: cfp
128 - shell: '{script}'
129
130# publishers:
131# - ecomp-infra-shiplogs:
132# maven-version: 'mvn33'