Examples of CheckOutTask


Examples of org.apache.continuum.taskqueue.CheckOutTask

        {
            Map<String, Task> checkouts = getCurrentCheckouts();
            Set<String> keySet = checkouts.keySet();
            for( String key : keySet )
            {
                CheckOutTask task = (CheckOutTask) checkouts.get( key );
                if( task.getProjectId() == projectIds[i] )
                {
                    return true;
                }
            }
        }
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

                {
                    Set<Integer> keySet = overallBuildQueues.keySet();
                    for ( Integer key : keySet )
                    {
                        overallBuildQueue = overallBuildQueues.get( key );
                        CheckOutTask checkoutTask =
                            (CheckOutTask) overallBuildQueue.getCheckoutTaskQueueExecutor().getCurrentTask();
                        if ( checkoutTask != null && checkoutTask.getProjectId() == projectId )
                        {
                            overallBuildQueue.cancelCheckoutTask( projectId );
                            return true;
                        }
                    }
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

                "Error occurred while checking if the project is already in queue: " + e.getMessage() );
        }

        OverallBuildQueue overallBuildQueue = getOverallBuildQueue( CHECKOUT_QUEUE,
                                                                    defaultBuildDefinition.getSchedule().getBuildQueues() );
        CheckOutTask checkoutTask = new CheckOutTask( projectId, workingDirectory, projectName, scmUsername,
                                                      scmPassword, scmRootUrl, subProjects );
        try
        {
            if ( overallBuildQueue != null )
            {
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

        {
            Map<String, CheckOutTask> checkouts = getCurrentCheckouts();
            Set<String> keySet = checkouts.keySet();
            for ( String key : keySet )
            {
                CheckOutTask task = checkouts.get( key );
                if ( task.getProjectId() == projectId )
                {
                    log.info( "Project " + projectId + " is currently being checked out" );
                    return true;
                }
            }
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

            Map<String, CheckOutTask> currentCheckouts = new HashMap<String, CheckOutTask>();
            Set<Integer> keys = overallBuildQueues.keySet();
            for ( Integer key : keys )
            {
                OverallBuildQueue overallBuildQueue = overallBuildQueues.get( key );
                CheckOutTask task = (CheckOutTask) overallBuildQueue.getCheckoutTaskQueueExecutor().getCurrentTask();
                if ( task != null )
                {
                    currentCheckouts.put( overallBuildQueue.getName(), task );
                }
            }
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

        throws BuildManagerException
    {
        Map<String, CheckOutTask> checkouts = getCurrentCheckouts();
        for ( String key : checkouts.keySet() )
        {
            CheckOutTask task = checkouts.get( key );
            if ( task.getProjectId() == projectId )
            {
                return true;
            }
        }
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

        recordStartOfCheckoutProjectSequence();

        final List<Task> tasks = new ArrayList<Task>();

        final List<Task> tasksInFirstCheckoutQueue = new ArrayList<Task>();
        tasksInFirstCheckoutQueue.add( new CheckOutTask( 1, new File( getBasedir(), "/target/test-working-dir/1" ),
                                                         "continuum-project-test-1", "dummy", "dummypass", null,
                                                         null ) );

        context.checking( new Expectations()
        {
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

        final List<Task> buildTasks = new ArrayList<Task>();
        buildTasks.add( new BuildProjectTask( 2, 1, new BuildTrigger( 1, "test-user" ), "continuum-project-test-2",
                                              "BUILD_DEF", null, 2 ) );

        final List<CheckOutTask> checkoutTasks = new ArrayList<CheckOutTask>();
        checkoutTasks.add( new CheckOutTask( 2, new File( getBasedir(), "/target/test-working-dir/1" ),
                                             "continuum-project-test-2", "dummy", "dummypass", null, null ) );

        final List<Task> prepareBuildTasks = new ArrayList<Task>();
        final Map<Integer, Integer> map = new HashMap<Integer, Integer>();
        map.put( 1, 1 );
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

        final List<BuildProjectTask> buildTasks = new ArrayList<BuildProjectTask>();
        buildTasks.add( new BuildProjectTask( 2, 1, new BuildTrigger( 1, "test-user" ), "continuum-project-test-2",
                                              "BUILD_DEF", null, 2 ) );

        final List<CheckOutTask> checkoutTasks = new ArrayList<CheckOutTask>();
        checkoutTasks.add( new CheckOutTask( 2, new File( getBasedir(), "/target/test-working-dir/1" ),
                                             "continuum-project-test-2", "dummy", "dummypass", null, null ) );

        try
        {
            context.checking( new Expectations()
View Full Code Here

Examples of org.apache.continuum.taskqueue.CheckOutTask

        throws Exception
    {
        setupMockOverallBuildQueues();

        final List<Task> tasks = new ArrayList<Task>();
        tasks.add( new CheckOutTask( 2, new File( getBasedir(), "/target/test-working-dir/1" ),
                                     "continuum-project-test-2", "dummy", "dummypass", null, null ) );

        context.checking( new Expectations()
        {
            {
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.