Package com.groupon.jenkins.github.services

Examples of com.groupon.jenkins.github.services.GithubRepositoryService


        return Jenkins.getInstance().getAllItems(DynamicProject.class);
    }

    public DynamicProject createNewProject(GHRepository githubRepository) {
        try {
            new GithubRepositoryService(githubRepository).linkProjectToCi();

            OrganizationContainer folder = this.organizationRepository.getOrCreateContainer(githubRepository.getOwner().getLogin());
            String projectName = githubRepository.getName();
            DynamicProject project = folder.createProject(DynamicProject.class, projectName);
View Full Code Here


    private final DynamicBuild build;
    private final GithubRepositoryService githubRepositoryService;

    public DynamicBuildModel(DynamicBuild build) {
        this(build, new GithubRepositoryService(build.getGithubRepoUrl()));
    }
View Full Code Here

    public DynamicSubProject getSubProject(Combination subBuildCombination) {
        return Iterables.getOnlyElement(getSubProjects(Arrays.asList(subBuildCombination)));
    }

    public GithubRepositoryService getGithubRepositoryService() {
        return new GithubRepositoryService(getGithubRepoUrl());
    }
View Full Code Here

TOP

Related Classes of com.groupon.jenkins.github.services.GithubRepositoryService

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.