Package com.groupon.jenkins.buildtype

Examples of com.groupon.jenkins.buildtype.InvalidBuildConfigurationException


                adapter.setOptions(options);
                return adapter;
            }

        }
        throw new InvalidBuildConfigurationException("Plugin " + pluginName + " not supported");
    }
View Full Code Here


    private String getDotCiYml(DynamicBuild build) throws IOException {
       try {
           return build.getGithubRepositoryService().getGHFile(".ci.yml", build.getSha()).getContent();
       } catch (FileNotFoundException _){
           throw new InvalidBuildConfigurationException("No .ci.yml found.");
       }
   }
View Full Code Here

        DotCiTemplate dotCiTemplate = new DotCiTemplate();
        try {
            GHContent file = githubRepositoryService.getGHFile(".ci.yml", sha);
            BuildConfiguration configuration = new BuildConfiguration(file.getContent(), envVars);
            if (!configuration.isValid()) {
                throw new InvalidBuildConfigurationException(configuration.getValidationErrors());
            }
          if(configuration.getLanguage() == null){
              DotCiTemplate defaultParentTemplate = dotCiTemplate.getDefaultFor(githubRepositoryService.getGithubRepository()); //.getBuildConfiguration(envVars);
              return dotCiTemplate.getMergedTemplate(configuration,defaultParentTemplate,envVars);
          }
View Full Code Here

                notifier.setOptions(options);
                return notifier;
            }

        }
        throw new InvalidBuildConfigurationException("Notification " + pluginName + " not supported");
    }
View Full Code Here

TOP

Related Classes of com.groupon.jenkins.buildtype.InvalidBuildConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.