File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
src/main/groovy/com/cloudogu/gitops/config Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,9 @@ class CommonFeatureConfig extends Feature {
1515 * Throws RuntimeException which meaningful message, if invalid.
1616 */
1717 void validateConfig (Config configToSet ) {
18- validateScmmAndJenkinsAreBothSet(configToSet)
1918 validateMirrorReposHelmChartFolderSet(configToSet)
2019 }
2120
22- private void validateScmmAndJenkinsAreBothSet (Config configToSet ) {
23- if (configToSet. jenkins. active &&
24- (configToSet. scmm. url && ! configToSet. jenkins. url ||
25- ! configToSet. scmm. url && configToSet. jenkins. url)) {
26- throw new RuntimeException (' When setting jenkins URL, scmm URL must also be set and the other way round' )
27- }
28- }
29-
3021 private void validateMirrorReposHelmChartFolderSet (Config configToSet ) {
3122 if (configToSet. application. mirrorRepos && ! configToSet. application. localHelmChartFolder) {
3223 // This should only happen when run outside the image, i.e. during development
@@ -40,4 +31,4 @@ class CommonFeatureConfig extends Feature {
4031 boolean isEnabled () {
4132 return false
4233 }
43- }
34+ }
You can’t perform that action at this time.
0 commit comments