Examples of ProjectRunSummary


Examples of org.apache.continuum.model.project.ProjectRunSummary

    public void removeCurrentRun( int projectId, int buildDefinitionId )
    {
        synchronized ( currentRuns )
        {
            boolean found = false;
            ProjectRunSummary runToDelete = null;

            for ( ProjectRunSummary currentRun : currentRuns )
            {
                if ( currentRun.getProjectId() == projectId && currentRun.getBuildDefinitionId() == buildDefinitionId )
                {
View Full Code Here

Examples of org.apache.continuum.model.project.ProjectRunSummary

            for ( int projectId : map.keySet() )
            {
                int buildDefinitionId = map.get( projectId );

                ProjectRunSummary runToDelete = null;

                // check if there is an existing current run with that project id and build definition id
                for ( ProjectRunSummary currentRun : currentRuns )
                {
                    if ( currentRun.getProjectId() == projectId &&
                        currentRun.getBuildDefinitionId() == buildDefinitionId )
                    {
                        runToDelete = currentRun;
                        break;
                    }
                }

                if ( runToDelete != null )
                {
                    // previous run already finished, but was not removed from the list
                    // removed it
                    currentRuns.remove( runToDelete );
                }

                ProjectRunSummary run = new ProjectRunSummary();
                run.setProjectGroupId( projectGroupId );
                run.setProjectScmRootId( projectScmRootId );
                run.setProjectId( projectId );
                run.setBuildDefinitionId( buildDefinitionId );
                run.setTriggeredBy( task.getBuildTrigger().getTriggeredBy() );
                run.setTrigger( task.getBuildTrigger().getTrigger() );
                run.setBuildAgentUrl( buildAgentUrl );
                currentRuns.add( run );
            }
        }
    }
View Full Code Here

Examples of org.apache.continuum.model.project.ProjectRunSummary

    private List<ProjectRunSummary> getCurrentRuns()
    {
        List<ProjectRunSummary> runs = new ArrayList<ProjectRunSummary>();

        ProjectRunSummary run1 = new ProjectRunSummary();
        run1.setProjectId( 1 );
        run1.setBuildDefinitionId( 1 );
        run1.setProjectGroupId( 1 );
        run1.setProjectScmRootId( 1 );
        run1.setTrigger( 1 );
        run1.setTriggeredBy( "user" );
        run1.setBuildAgentUrl( "http://localhost:8181/continuum-buildagent/xmlrpc" );
        runs.add( run1 );

        ProjectRunSummary run2 = new ProjectRunSummary();
        run2.setProjectId( 2 );
        run2.setBuildDefinitionId( 2 );
        run2.setProjectGroupId( 1 );
        run2.setProjectScmRootId( 1 );
        run2.setTrigger( 1 );
        run2.setTriggeredBy( "user" );
        run2.setBuildAgentUrl( "http://localhost:8181/continuum-buildagent/xmlrpc" );
        runs.add( run2 );

        return runs;
    }
View Full Code Here

Examples of org.apache.continuum.model.project.ProjectRunSummary

    private List<ProjectRunSummary> getCurrentRuns()
    {
        List<ProjectRunSummary> runs = new ArrayList<ProjectRunSummary>();

        ProjectRunSummary run1 = new ProjectRunSummary();
        run1.setProjectId( 1 );
        run1.setBuildDefinitionId( 1 );
        run1.setProjectGroupId( 1 );
        run1.setProjectScmRootId( 1 );
        run1.setTrigger( 1 );
        run1.setTriggeredBy( "user" );
        run1.setBuildAgentUrl( "http://localhost:8181/continuum-buildagent/xmlrpc" );
        runs.add( run1 );

        ProjectRunSummary run2 = new ProjectRunSummary();
        run2.setProjectId( 2 );
        run2.setBuildDefinitionId( 2 );
        run2.setProjectGroupId( 1 );
        run2.setProjectScmRootId( 1 );
        run2.setTrigger( 1 );
        run2.setTriggeredBy( "user" );
        run2.setBuildAgentUrl( "http://localhost:8181/continuum-buildagent/xmlrpc" );
        runs.add( run2 );

        return runs;
    }
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.