Examples of cancelBuild()


Examples of org.apache.continuum.buildmanager.BuildsManager.cancelBuild()

        {
            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.cancelBuild()

      {
          checkBuildProjectInGroupAuthorization( getProjectGroupName() );
 
          BuildsManager buildsManager = getContinuum().getBuildsManager();
         
          buildsManager.cancelBuild( projectId );
      }
      catch ( AuthorizationRequiredException e )
      {
          return REQUIRES_AUTHORIZATION;
      }
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager.cancelBuild()

            }
            else
            {
                BuildsManager buildsManager = getContinuum().getBuildsManager();

                buildsManager.cancelBuild( projectId );
            }

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

Examples of org.apache.continuum.buildmanager.BuildsManager.cancelBuild()

        {
            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.cancelBuild()

      {
          checkBuildProjectInGroupAuthorization( getProjectGroupName() );
 
          BuildsManager buildsManager = getContinuum().getBuildsManager();
         
          buildsManager.cancelBuild( projectId );
      }
      catch ( AuthorizationRequiredException e )
      {
          return REQUIRES_AUTHORIZATION;
      }
View Full Code Here

Examples of org.apache.continuum.buildmanager.BuildsManager.cancelBuild()

        {
            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.distributed.transport.slave.SlaveBuildAgentTransportClient.cancelBuild()

                        taskQueueExecutor.cancelTask( currentTask );

                        try
                        {
                            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                            client.cancelBuild();
                        }
                        catch ( Exception e )
                        {
                            log.error( "Error while cancelling build in build agent '" + buildAgentUrl + "'" );
                            throw new ContinuumException( "Error while cancelling build in build agent '" + buildAgentUrl + "'", e );
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient.cancelBuild()

                        try
                        {
                            SlaveBuildAgentTransportClient client =
                                new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                            client.cancelBuild();
                        }
                        catch ( Exception e )
                        {
                            log.error( "Error while cancelling build in build agent '" + buildAgentUrl + "'" );
                            throw new ContinuumException(
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient.cancelBuild()

    {
        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );

            client.cancelBuild();
        }
        catch ( MalformedURLException e )
        {
            log.error( "Error cancelling build in build agent: Invalid build agent url " + buildAgentUrl );
            throw new ContinuumException( "Error cancelling build in build agent: Invalid build agent url " + buildAgentUrl );
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService.cancelBuild()

        {
            if ( isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportService client = createSlaveBuildAgentTransportClientConnection( buildAgentUrl );
   
                client.cancelBuild();
            }

            // call reload in case we disable the build agent
            reload();
        }
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.