Examples of BuildsManager


Examples of org.apache.continuum.buildmanager.BuildsManager

        projectGroup = (ProjectGroup) projectGroupList.iterator().next();

        assertNotNull( projectGroup );

        BuildsManager buildsManager = continuum.getBuildsManager();

        List<Project> projects = continuum.getProjectGroupWithProjects( projectGroup.getId() ).getProjects();
        int[] projectIds = new int[projects.size()];

        int idx = 0;
        for ( Project project : projects )
        {
            projectIds[idx] = project.getId();
            idx++;
        }

        while ( buildsManager.isAnyProjectCurrentlyBeingCheckedOut( projectIds ) )
        {
        }

        continuum.removeProjectGroup( projectGroup.getId() );
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

    public void testRemoveProjectFromCheckoutQueue()
        throws Exception
    {
        Continuum continuum = (Continuum) lookup( Continuum.ROLE );

        BuildsManager parallelBuildsManager = continuum.getBuildsManager();

        String url = getTestFile( "src/test-projects/project1/pom.xml" ).toURL().toExternalForm();

        ContinuumProjectBuildingResult result = continuum.addMavenTwoProject( url );

        assertNotNull( result );

        List<Project> projects = result.getProjects();

        assertEquals( 1, projects.size() );

        assertEquals( Project.class, projects.get( 0 ).getClass() );

        Project project = projects.get( 0 );

        parallelBuildsManager.removeProjectFromCheckoutQueue( project.getId() );

        assertFalse( "project still exist on the checkout queue",
                     parallelBuildsManager.isInAnyCheckoutQueue( project.getId() ) );
    }
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

    {
        try
        {
            checkBuildProjectInGroupAuthorization( getProjectGroupName() );

            BuildsManager buildsManager = getContinuum().getBuildsManager();

            buildsManager.cancelBuild( projectId );

            AuditLog event = new AuditLog( "Project id=" + projectId, AuditLogConstants.CANCEL_BUILD );
            event.setCategory( AuditLogConstants.PROJECT );
            event.setCurrentUser( getPrincipal() );
            event.log();
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

        {
            int projectId = Integer.parseInt( selectedProjectId );
            projectsId = ArrayUtils.add( projectsId, projectId );
        }

        BuildsManager parallelBuildsManager = getContinuum().getBuildsManager();
        parallelBuildsManager.removeProjectsFromBuildQueue( projectsId );

        try
        {
            // now we must check if the current build is one of this
            int index = ArrayUtils.indexOf( projectsId, getCurrentProjectIdBuilding() );
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

        catch ( AuthorizationRequiredException e )
        {
            return REQUIRES_AUTHORIZATION;
        }

        BuildsManager buildsManager = getContinuum().getBuildsManager();

        List<ProjectScmRoot> scmRoots = getContinuum().getProjectScmRootByProjectGroup( projectGroupId );

        if ( scmRoots != null )
        {
            for ( ProjectScmRoot scmRoot : scmRoots )
            {
                try
                {
                    buildsManager.removeProjectGroupFromPrepareBuildQueue( projectGroupId,
                                                                           scmRoot.getScmRootAddress() );
                    //taskQueueManager.removeFromPrepareBuildQueue( projectGroupId, scmRoot.getScmRootAddress() );
                }
                catch ( BuildManagerException e )
                {
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

        projectGroup = (ProjectGroup) projectGroupList.iterator().next();

        assertNotNull( projectGroup );

        BuildsManager buildsManager = continuum.getBuildsManager();

        List<Project> projects = continuum.getProjectGroupWithProjects( projectGroup.getId() ).getProjects();
        int[] projectIds = new int[projects.size()];

        int idx = 0;
        for ( Project project : projects )
        {
            projectIds[idx] = project.getId();
            idx++;
        }

        while ( buildsManager.isAnyProjectCurrentlyBeingCheckedOut( projectIds ) )
        {
        }

        continuum.removeProjectGroup( projectGroup.getId() );
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

    public void testRemoveProjectFromCheckoutQueue()
        throws Exception
    {
        Continuum continuum = (Continuum) lookup( Continuum.ROLE );

        BuildsManager parallelBuildsManager = continuum.getBuildsManager();

        String url = getTestFile( "src/test-projects/project1/pom.xml" ).toURL().toExternalForm();

        ContinuumProjectBuildingResult result = continuum.addMavenTwoProject( url );

        assertNotNull( result );

        List<Project> projects = result.getProjects();

        assertEquals( 1, projects.size() );

        assertEquals( Project.class, projects.get( 0 ).getClass() );

        Project project = projects.get( 0 );

        parallelBuildsManager.removeProjectFromCheckoutQueue( project.getId() );

        assertFalse( "project still exist on the checkout queue",
                     parallelBuildsManager.isInAnyCheckoutQueue( project.getId() ) );
    }
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

    private boolean canDelete = true;

    protected boolean canRemoveBuildResult( BuildResult buildResult )
        throws BuildManagerException
    {
        BuildsManager buildsManager = getContinuum().getBuildsManager();

        Map<String, BuildProjectTask> currentBuilds = buildsManager.getCurrentBuilds();
        Set<String> keySet = currentBuilds.keySet();
        for ( String key : keySet )
        {
            BuildProjectTask buildProjectTask = currentBuilds.get( key );
            if ( buildProjectTask != null && buildResult != null )
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

            .getServletContext() );

        // to simulate Plexus load on start with Spring
        Continuum continuum = (Continuum) wac.getBean( PlexusToSpringUtils.buildSpringId( Continuum.class ) );

        BuildsManager buildsManager = (BuildsManager) wac.getBean( PlexusToSpringUtils.buildSpringId( BuildsManager.class, "parallel" ) );

        TaskQueueExecutor prepareRelease = (TaskQueueExecutor) wac.getBean( PlexusToSpringUtils
            .buildSpringId( TaskQueueExecutor.class, "prepare-release" ) );

        TaskQueueExecutor performRelease = (TaskQueueExecutor) wac.getBean( PlexusToSpringUtils
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager

            .getServletContext() );

        // to simulate Plexus load on start with Spring
        Continuum continuum = (Continuum) wac.getBean( PlexusToSpringUtils.buildSpringId( Continuum.class ) );

        BuildsManager buildsManager = (BuildsManager) wac.getBean( PlexusToSpringUtils.buildSpringId( BuildsManager.class, "parallel" ) );

        TaskQueueExecutor prepareRelease = (TaskQueueExecutor) wac.getBean( PlexusToSpringUtils
            .buildSpringId( TaskQueueExecutor.class, "prepare-release" ) );

        TaskQueueExecutor performRelease = (TaskQueueExecutor) wac.getBean( PlexusToSpringUtils
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.