Package org.apache.continuum.buildmanager

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


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

            }
            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

        {
            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

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

        {
            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

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.