blob: a0fafde4e1abb29e4a55793e00d9f121fc6b7f12 [file] [log] [blame]
Gary Wuc652d4a2017-09-22 13:33:42 -07001---
2- job-template:
3 name: '{project-name}-{stream}-{subproject}-docker-merge'
Bartek Grzybowskied4b5d42020-04-28 23:58:01 -07004 id: integration-docker-merge
Gary Wuc652d4a2017-09-22 13:33:42 -07005 project-type: freestyle
Bengt Thureede7d1a22022-09-30 00:24:40 +10006 node: 'ubuntu1804-docker-8c-8g'
Gary Wuc652d4a2017-09-22 13:33:42 -07007 docker-image-name: ''
Bartek Grzybowski89e330d2020-04-29 00:06:10 -07008 mvn-goals: 'clean package docker:build docker:push'
Gary Wuc652d4a2017-09-22 13:33:42 -07009
10 properties:
11 - infra-properties:
12 build-days-to-keep: '{build-days-to-keep}'
13
14 parameters:
15 - infra-parameters:
16 project: '{project}'
17 branch: '{branch}'
18 refspec: 'refs/heads/{branch}'
19 artifacts: '{archive-artifacts}'
20 - maven-exec:
21 maven-version: '{maven-version}'
22 - docker-image-name:
23 docker-image-name: '{docker-image-name}'
24
25 scm:
26 - gerrit-trigger-scm:
27 refspec: ''
28 choosing-strategy: 'default'
29 submodule-recursive: '{submodule-recursive}'
30
31 wrappers:
32 - infra-wrappers:
33 build-timeout: '{build-timeout}'
34
35 triggers:
Gary Wuc652d4a2017-09-22 13:33:42 -070036 - gerrit-trigger-patch-merged:
37 server: '{server-name}'
38 project: '{project}'
39 branch: '{branch}'
40 files: '{pattern}'
41
42 builders:
Gary Wuc652d4a2017-09-22 13:33:42 -070043 - provide-maven-settings:
44 global-settings-file: 'global-settings'
45 settings-file: '{mvn-settings}'
46
47 - docker-login
48
49 - maven-target:
50 maven-version: '{maven-version}'
51 pom: '{pom}'
Bartek Grzybowski89e330d2020-04-29 00:06:10 -070052 goals: '{mvn-goals}'
Gary Wuc652d4a2017-09-22 13:33:42 -070053 settings: '{mvn-settings}'
54 settings-type: cfp
55 global-settings: 'global-settings'
56 global-settings-type: cfp
57 properties:
58 - docker.pull.registry=nexus3.onap.org:10001
59 - docker.push.registry=nexus3.onap.org:10003
60
61 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -080062 - lf-infra-publish
Gary Wuc652d4a2017-09-22 13:33:42 -070063
64- job-template:
65 name: '{project-name}-{stream}-{subproject}-docker-verify'
Bartek Grzybowskied4b5d42020-04-28 23:58:01 -070066 id: integration-docker-verify
Gary Wuc652d4a2017-09-22 13:33:42 -070067 project-type: freestyle
Bengt Thureede7d1a22022-09-30 00:24:40 +100068 node: 'ubuntu1804-docker-8c-8g'
Gary Wuc652d4a2017-09-22 13:33:42 -070069 docker-image-name: ''
Bartek Grzybowski89e330d2020-04-29 00:06:10 -070070 mvn-goals: 'clean package docker:build'
Bartek Grzybowski4750f3f2020-04-29 05:50:24 -070071 post-docker-verify-script: ''
Gary Wuc652d4a2017-09-22 13:33:42 -070072
73 properties:
74 - infra-properties:
75 build-days-to-keep: '{build-days-to-keep}'
76
77 parameters:
78 - infra-parameters:
79 project: '{project}'
80 branch: '{branch}'
81 refspec: 'refs/heads/{branch}'
82 artifacts: '{archive-artifacts}'
83 - maven-exec:
84 maven-version: '{maven-version}'
85 - docker-image-name:
86 docker-image-name: '{docker-image-name}'
87
88 scm:
89 - gerrit-trigger-scm:
Gary Wu325a2752018-05-16 08:47:52 -070090 refspec: '$GERRIT_REFSPEC'
91 choosing-strategy: 'gerrit'
Gary Wuc652d4a2017-09-22 13:33:42 -070092 submodule-recursive: '{submodule-recursive}'
93
94 wrappers:
95 - infra-wrappers:
96 build-timeout: '{build-timeout}'
97
98 triggers:
99 - gerrit-trigger-patch-submitted:
100 server: '{server-name}'
101 project: '{project}'
102 branch: '{branch}'
103 files: '{pattern}'
104
105 builders:
Gary Wuc652d4a2017-09-22 13:33:42 -0700106 - provide-maven-settings:
107 global-settings-file: 'global-settings'
108 settings-file: '{mvn-settings}'
109
110 - docker-login
111
112 - maven-target:
113 maven-version: '{maven-version}'
114 pom: '{pom}'
Bartek Grzybowski89e330d2020-04-29 00:06:10 -0700115 goals: '{mvn-goals}'
Gary Wuc652d4a2017-09-22 13:33:42 -0700116 settings: '{mvn-settings}'
117 settings-type: cfp
118 global-settings: 'global-settings'
119 global-settings-type: cfp
120 properties:
121 - docker.pull.registry=nexus3.onap.org:10001
122 - docker.push.registry=nexus3.onap.org:10003
Bartek Grzybowski4750f3f2020-04-29 05:50:24 -0700123 - shell: '{post-docker-verify-script}'
Gary Wuc652d4a2017-09-22 13:33:42 -0700124
125 publishers:
Jessica Wagantall2a6a3802021-01-14 12:19:17 -0800126 - lf-infra-publish
Gary Wuc652d4a2017-09-22 13:33:42 -0700127
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700128- job-template:
129 name: '{project-name}-{stream}-{subproject}-docker-compose-verify'
Bartek Grzybowski59083542020-04-09 06:35:50 -0700130 id: integration-docker-compose-verify
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700131 project-type: freestyle
132 description: 'This job validates Docker Compose based projects'
Bengt Thureede7d1a22022-09-30 00:24:40 +1000133 node: 'ubuntu1804-docker-8c-8g'
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700134 docker_root: '$WORKSPACE'
Bartek Grzybowskib7f20992020-04-02 03:57:07 -0700135 post_script: ''
Bartek Grzybowski4d63be52020-04-02 07:40:59 -0700136 netconf_sim_service_name: ''
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700137
138 parameters:
139 - lf-infra-parameters:
140 project: '{project}'
141 stream: '{stream}'
142 branch: '{branch}'
143
144 properties:
145 - infra-properties:
146 build-days-to-keep: '{build-days-to-keep}'
147
148 scm:
149 - gerrit-trigger-scm:
150 refspec: '$GERRIT_REFSPEC'
151 choosing-strategy: 'gerrit'
152 submodule-recursive: '{submodule-recursive}'
153
154 wrappers:
155 - infra-wrappers:
156 build-timeout: '{build-timeout}'
157
158 triggers:
159 - gerrit-trigger-patch-submitted:
160 server: '{server-name}'
161 project: '{project}'
162 branch: '{branch}'
163 files: '{pattern}'
164
165 builders:
166 - inject:
167 properties-content: |
168 DOCKER_ROOT={docker_root}
Bartek Grzybowski4d63be52020-04-02 07:40:59 -0700169 NETCONF_SIM_SERVICE_NAME={netconf_sim_service_name}
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700170 - shell: '{script}'
Bartek Grzybowskib7f20992020-04-02 03:57:07 -0700171 - shell: '{post_script}'
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700172
173 publishers:
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -0700174 - integration-docker-compose-logs
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700175 - lf-infra-publish