Package com.groupon.jenkins.buildtype.install_packages

Examples of com.groupon.jenkins.buildtype.install_packages.InstallPackagesBuild


    @Rule
    public JenkinsRule j = new JenkinsRule();
    @Test
    public void should_use_project_buildtype_if_available() throws Exception {
        String dockerImageBuildType = new DockerImageBuild().getId();
        String installPackagesBuildType = new InstallPackagesBuild().getId();
        SetupConfig.get().setDefaultBuildType(dockerImageBuildType);
        DynamicProject dynamicProject = Mockito.mock(DynamicProject.class);
        Mockito.when(dynamicProject.getBuildType()).thenReturn(installPackagesBuildType);
        BuildType buildType = BuildType.getBuildType(dynamicProject);
        Assert.assertEquals(installPackagesBuildType,buildType.getId());
View Full Code Here


        this.deployKey = deployKey;
    }

    public String getDefaultBuildType() {
        if (StringUtils.isEmpty(defaultBuildType)) {
            InstallPackagesBuild type = new InstallPackagesBuild();
            return type.getId();
        }
        return defaultBuildType;
    }
View Full Code Here

TOP

Related Classes of com.groupon.jenkins.buildtype.install_packages.InstallPackagesBuild

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.