Examples of BuildsManager


Examples of org.apache.continuum.buildmanager.BuildsManager

                event.log();
            }
        }
        else
        {
            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

            return SUCCESS;
        }
        else
        {
            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

    {
        try
        {
            checkBuildProjectInGroupAuthorization( getProjectGroupName() );

            BuildsManager buildsManager = getContinuum().getBuildsManager();

            buildsManager.cancelBuild( projectId );
           
            AuditLog event = new AuditLog( getProjectGroupName(), 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 = projectGroup.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

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

        assertNotNull( projectGroup );
       
        BuildsManager buildsManager = continuum.getBuildsManager();
       
        List<Project> projects = projectGroup.getProjects();
        int[] projectIds = new int[ projects.size() ];
       
        int idx = 0;
        for( Project project : projects )
        {
            projectIds[ idx ] = project.getId();
            idx++;
        }
       
        while( buildsManager.isAnyProjectCurrentlyBeingCheckedOut( projectIds ) )
        {
            continue;
        }
       
        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 projects = result.getProjects();

        assertEquals( 1, projects.size() );

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

        Project 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 );
      }
      catch ( AuthorizationRequiredException e )
      {
          return REQUIRES_AUTHORIZATION;
      }
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.