@@ -131,6 +131,15 @@ class ApplicationConfigurator {
131
131
newConfig. scmm. ingress = new URL (injectSubdomain(' scmm' ,
132
132
newConfig. application. baseUrl as String , newConfig. application. urlSeparatorHyphen as Boolean )). host
133
133
}
134
+ // When specific user/pw are not set, set them to global values
135
+ if (newConfig. scmm. password === Config . DEFAULT_ADMIN_PW ) {
136
+ newConfig. scmm. password = newConfig. application. password
137
+ }
138
+ if (newConfig. scmm. username === Config . DEFAULT_ADMIN_USER ) {
139
+ newConfig. scmm. username = newConfig. application. username
140
+ }
141
+
142
+
134
143
}
135
144
136
145
private void addJenkinsConfig (Config newConfig ) {
@@ -153,6 +162,13 @@ class ApplicationConfigurator {
153
162
newConfig. jenkins. ingress = new URL (injectSubdomain(' jenkins' ,
154
163
newConfig. application. baseUrl, newConfig. application. urlSeparatorHyphen)). host
155
164
}
165
+ // When specific user/pw are not set, set them to global values
166
+ if (newConfig. jenkins. username === Config . DEFAULT_ADMIN_USER ) {
167
+ newConfig. jenkins. username = newConfig. application. username
168
+ }
169
+ if (newConfig. jenkins. password === Config . DEFAULT_ADMIN_PW ) {
170
+ newConfig. jenkins. password = newConfig. application. password
171
+ }
156
172
}
157
173
158
174
private void evaluateBaseUrl (Config newConfig ) {
@@ -328,4 +344,6 @@ class ApplicationConfigurator {
328
344
throw new RuntimeException (errorMessage, e)
329
345
}
330
346
}
347
+
348
+
331
349
}
0 commit comments