Examples of SlaveBuildAgentTransportClient


Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

        try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                return client.getPreparedReleaseName( releaseId );
            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

        try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                client.releasePerform( releaseId, goals, arguments, useReleaseProfile, map, username );
   
                addReleaseInProgress( releaseId, "perform", projectId, username );
            }

            // call reload in case we disable the build agent
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

        try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                String releaseId =
                    client.releasePerformFromScm( goals, arguments, useReleaseProfile, map, scmUrl, scmUsername,
                                                  scmPassword, scmTag, scmTagBase, environments, username );
   
                addReleasePrepare( releaseId, buildAgentUrl, scmTag, "perform" );
                addReleaseInProgress( releaseId, "perform", projectId, username );
   
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

        try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                client.releaseRollback( releaseId, projectId );
            }

            // call reload in case we disable the build agent
            distributedBuildManager.reload();
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

        try
        {
            if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
            {
                SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                String result = client.releaseCleanup( releaseId );
   
                removeFromReleaseInProgress( releaseId );
                removeFromPreparedReleases( releaseId );
   
                return result;
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

                    try
                    {
                        if ( distributedBuildManager.isAgentAvailable( buildAgentUrl ) )
                        {
                            SlaveBuildAgentTransportClient client =
                                new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ) );
                            Map map = client.getListener( releaseId );
   
                            if ( map != null && !map.isEmpty() )
                            {
                                Map<String, Object> release = releasesInProgress.get( releaseId );
                                release.put( DistributedReleaseUtil.KEY_RELEASE_ID, releaseId );
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

    {
        PrepareBuildProjectsTask prepareBuildTask = (PrepareBuildProjectsTask) task;

        try
        {
            SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( buildAgentUrl ), "",
                                                                                        configurationService.getSharedSecretPassword() );

            log.info( "initializing buildContext for projectGroupId=" + prepareBuildTask.getProjectGroupId() );
            List<Map<String, Object>> buildContext = initializeBuildContext(
                prepareBuildTask.getProjectsBuildDefinitionsMap(), prepareBuildTask.getBuildTrigger(),
                prepareBuildTask.getScmRootAddress(), prepareBuildTask.getProjectScmRootId() );

            startTime = System.currentTimeMillis();
            client.buildProjects( buildContext );
            endTime = System.currentTimeMillis();
        }
        catch ( MalformedURLException e )
        {
            log.error( "Invalid URL " + buildAgentUrl + ", not building" );
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

    {
        PrepareBuildProjectsTask prepareBuildTask = (PrepareBuildProjectsTask) task;

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

            log.info( "initializing buildContext" );
            List buildContext = initializeBuildContext( prepareBuildTask.getProjectsBuildDefinitionsMap(),
                                                        prepareBuildTask.getTrigger(),
                                                        prepareBuildTask.getScmRootAddress() );

            startTime = System.currentTimeMillis();
            client.buildProjects( buildContext );

            endTime = System.currentTimeMillis();
        }
        catch ( MalformedURLException e )
        {
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

            {
                if ( agent.isEnabled() )
                {
                    try
                    {
                        SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( agent.getUrl() ) );
                       
                        if ( client.ping() )
                        {
                            log.info( "agent is enabled, add TaskQueueExecutor for build agent '" + agent.getUrl() + "'" );
                            addTaskQueueExecutor( agent.getUrl() );
                        }
                        else
View Full Code Here

Examples of org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient

        {
            if ( agent.isEnabled() && !taskQueueExecutors.containsKey( agent.getUrl() ) )
            {
                try
                {
                    SlaveBuildAgentTransportClient client = new SlaveBuildAgentTransportClient( new URL( agent.getUrl() ) );
                   
                    if ( client.ping() )
                    {
                        log.info( "agent is enabled, add TaskQueueExecutor for build agent '" + agent.getUrl() + "'" );
                        addTaskQueueExecutor( agent.getUrl() );
                    }
                    else
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.