blob: caa0ad7566c5f5026cdd75f039ab4dcb03eea301 [file] [log] [blame]
Gary Wuc652d4a2017-09-22 13:33:42 -07001---
2- job-template:
3 name: '{project-name}-{stream}-{subproject}-docker-merge'
4 project-type: freestyle
Bartek Grzybowski97928d02020-03-27 16:11:51 +01005 node: 'ubuntu1804-docker-8c-8g'
Gary Wuc652d4a2017-09-22 13:33:42 -07006 docker-image-name: ''
7
8 properties:
9 - infra-properties:
10 build-days-to-keep: '{build-days-to-keep}'
11
12 parameters:
13 - infra-parameters:
14 project: '{project}'
15 branch: '{branch}'
16 refspec: 'refs/heads/{branch}'
17 artifacts: '{archive-artifacts}'
18 - maven-exec:
19 maven-version: '{maven-version}'
20 - docker-image-name:
21 docker-image-name: '{docker-image-name}'
22
23 scm:
24 - gerrit-trigger-scm:
25 refspec: ''
26 choosing-strategy: 'default'
27 submodule-recursive: '{submodule-recursive}'
28
29 wrappers:
30 - infra-wrappers:
31 build-timeout: '{build-timeout}'
32
33 triggers:
Gary Wuc652d4a2017-09-22 13:33:42 -070034 - gerrit-trigger-patch-merged:
35 server: '{server-name}'
36 project: '{project}'
37 branch: '{branch}'
38 files: '{pattern}'
39
40 builders:
41
42 - provide-maven-settings:
43 global-settings-file: 'global-settings'
44 settings-file: '{mvn-settings}'
45
46 - docker-login
47
48 - maven-target:
49 maven-version: '{maven-version}'
50 pom: '{pom}'
51 goals: 'clean package docker:build docker:push'
52 settings: '{mvn-settings}'
53 settings-type: cfp
54 global-settings: 'global-settings'
55 global-settings-type: cfp
56 properties:
57 - docker.pull.registry=nexus3.onap.org:10001
58 - docker.push.registry=nexus3.onap.org:10003
59
60 publishers:
61 - infra-shiplogs:
62 maven-version: '{maven-version}'
63
64- job-template:
65 name: '{project-name}-{stream}-{subproject}-docker-verify'
66 project-type: freestyle
Bartek Grzybowski97928d02020-03-27 16:11:51 +010067 node: 'ubuntu1804-docker-8c-8g'
Gary Wuc652d4a2017-09-22 13:33:42 -070068 docker-image-name: ''
69
70 properties:
71 - infra-properties:
72 build-days-to-keep: '{build-days-to-keep}'
73
74 parameters:
75 - infra-parameters:
76 project: '{project}'
77 branch: '{branch}'
78 refspec: 'refs/heads/{branch}'
79 artifacts: '{archive-artifacts}'
80 - maven-exec:
81 maven-version: '{maven-version}'
82 - docker-image-name:
83 docker-image-name: '{docker-image-name}'
84
85 scm:
86 - gerrit-trigger-scm:
Gary Wu325a2752018-05-16 08:47:52 -070087 refspec: '$GERRIT_REFSPEC'
88 choosing-strategy: 'gerrit'
Gary Wuc652d4a2017-09-22 13:33:42 -070089 submodule-recursive: '{submodule-recursive}'
90
91 wrappers:
92 - infra-wrappers:
93 build-timeout: '{build-timeout}'
94
95 triggers:
96 - gerrit-trigger-patch-submitted:
97 server: '{server-name}'
98 project: '{project}'
99 branch: '{branch}'
100 files: '{pattern}'
101
102 builders:
103
104 - provide-maven-settings:
105 global-settings-file: 'global-settings'
106 settings-file: '{mvn-settings}'
107
108 - docker-login
109
110 - maven-target:
111 maven-version: '{maven-version}'
112 pom: '{pom}'
113 goals: 'clean package docker:build'
114 settings: '{mvn-settings}'
115 settings-type: cfp
116 global-settings: 'global-settings'
117 global-settings-type: cfp
118 properties:
119 - docker.pull.registry=nexus3.onap.org:10001
120 - docker.push.registry=nexus3.onap.org:10003
121
122 publishers:
123 - infra-shiplogs:
124 maven-version: '{maven-version}'
125
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700126
127- job-template:
128 name: '{project-name}-{stream}-{subproject}-docker-compose-verify'
129 project-type: freestyle
130 description: 'This job validates Docker Compose based projects'
131 node: 'ubuntu1804-docker-8c-8g'
132 docker_root: '$WORKSPACE'
133
134 parameters:
135 - lf-infra-parameters:
136 project: '{project}'
137 stream: '{stream}'
138 branch: '{branch}'
139
140 properties:
141 - infra-properties:
142 build-days-to-keep: '{build-days-to-keep}'
143
144 scm:
145 - gerrit-trigger-scm:
146 refspec: '$GERRIT_REFSPEC'
147 choosing-strategy: 'gerrit'
148 submodule-recursive: '{submodule-recursive}'
149
150 wrappers:
151 - infra-wrappers:
152 build-timeout: '{build-timeout}'
153
154 triggers:
155 - gerrit-trigger-patch-submitted:
156 server: '{server-name}'
157 project: '{project}'
158 branch: '{branch}'
159 files: '{pattern}'
160
161 builders:
162 - inject:
163 properties-content: |
164 DOCKER_ROOT={docker_root}
165 - shell: '{script}'
166
167 publishers:
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -0700168 - integration-docker-compose-logs
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700169 - lf-infra-publish