blob: 9c2682d43ae94a52a465de0a9b544b5425ec07ae [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
Bartek Grzybowski97928d02020-03-27 16:11:51 +01006 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:
62 - infra-shiplogs:
63 maven-version: '{maven-version}'
64
65- job-template:
66 name: '{project-name}-{stream}-{subproject}-docker-verify'
Bartek Grzybowskied4b5d42020-04-28 23:58:01 -070067 id: integration-docker-verify
Gary Wuc652d4a2017-09-22 13:33:42 -070068 project-type: freestyle
Bartek Grzybowski97928d02020-03-27 16:11:51 +010069 node: 'ubuntu1804-docker-8c-8g'
Gary Wuc652d4a2017-09-22 13:33:42 -070070 docker-image-name: ''
Bartek Grzybowski89e330d2020-04-29 00:06:10 -070071 mvn-goals: 'clean package docker:build'
Bartek Grzybowski4750f3f2020-04-29 05:50:24 -070072 post-docker-verify-script: ''
Gary Wuc652d4a2017-09-22 13:33:42 -070073
74 properties:
75 - infra-properties:
76 build-days-to-keep: '{build-days-to-keep}'
77
78 parameters:
79 - infra-parameters:
80 project: '{project}'
81 branch: '{branch}'
82 refspec: 'refs/heads/{branch}'
83 artifacts: '{archive-artifacts}'
84 - maven-exec:
85 maven-version: '{maven-version}'
86 - docker-image-name:
87 docker-image-name: '{docker-image-name}'
88
89 scm:
90 - gerrit-trigger-scm:
Gary Wu325a2752018-05-16 08:47:52 -070091 refspec: '$GERRIT_REFSPEC'
92 choosing-strategy: 'gerrit'
Gary Wuc652d4a2017-09-22 13:33:42 -070093 submodule-recursive: '{submodule-recursive}'
94
95 wrappers:
96 - infra-wrappers:
97 build-timeout: '{build-timeout}'
98
99 triggers:
100 - gerrit-trigger-patch-submitted:
101 server: '{server-name}'
102 project: '{project}'
103 branch: '{branch}'
104 files: '{pattern}'
105
106 builders:
Gary Wuc652d4a2017-09-22 13:33:42 -0700107 - provide-maven-settings:
108 global-settings-file: 'global-settings'
109 settings-file: '{mvn-settings}'
110
111 - docker-login
112
113 - maven-target:
114 maven-version: '{maven-version}'
115 pom: '{pom}'
Bartek Grzybowski89e330d2020-04-29 00:06:10 -0700116 goals: '{mvn-goals}'
Gary Wuc652d4a2017-09-22 13:33:42 -0700117 settings: '{mvn-settings}'
118 settings-type: cfp
119 global-settings: 'global-settings'
120 global-settings-type: cfp
121 properties:
122 - docker.pull.registry=nexus3.onap.org:10001
123 - docker.push.registry=nexus3.onap.org:10003
Bartek Grzybowski4750f3f2020-04-29 05:50:24 -0700124 - shell: '{post-docker-verify-script}'
Gary Wuc652d4a2017-09-22 13:33:42 -0700125
126 publishers:
127 - infra-shiplogs:
128 maven-version: '{maven-version}'
129
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700130- job-template:
131 name: '{project-name}-{stream}-{subproject}-docker-compose-verify'
Bartek Grzybowski59083542020-04-09 06:35:50 -0700132 id: integration-docker-compose-verify
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700133 project-type: freestyle
134 description: 'This job validates Docker Compose based projects'
135 node: 'ubuntu1804-docker-8c-8g'
136 docker_root: '$WORKSPACE'
Bartek Grzybowskib7f20992020-04-02 03:57:07 -0700137 post_script: ''
Bartek Grzybowski4d63be52020-04-02 07:40:59 -0700138 netconf_sim_service_name: ''
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700139
140 parameters:
141 - lf-infra-parameters:
142 project: '{project}'
143 stream: '{stream}'
144 branch: '{branch}'
145
146 properties:
147 - infra-properties:
148 build-days-to-keep: '{build-days-to-keep}'
149
150 scm:
151 - gerrit-trigger-scm:
152 refspec: '$GERRIT_REFSPEC'
153 choosing-strategy: 'gerrit'
154 submodule-recursive: '{submodule-recursive}'
155
156 wrappers:
157 - infra-wrappers:
158 build-timeout: '{build-timeout}'
159
160 triggers:
161 - gerrit-trigger-patch-submitted:
162 server: '{server-name}'
163 project: '{project}'
164 branch: '{branch}'
165 files: '{pattern}'
166
167 builders:
168 - inject:
169 properties-content: |
170 DOCKER_ROOT={docker_root}
Bartek Grzybowski4d63be52020-04-02 07:40:59 -0700171 NETCONF_SIM_SERVICE_NAME={netconf_sim_service_name}
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700172 - shell: '{script}'
Bartek Grzybowskib7f20992020-04-02 03:57:07 -0700173 - shell: '{post_script}'
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700174
175 publishers:
Bartek Grzybowskibcdbfa02020-03-31 06:56:10 -0700176 - integration-docker-compose-logs
Bartek Grzybowski4b168222020-03-31 06:43:45 -0700177 - lf-infra-publish