continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1372238 - /continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/AbstractReleaseAction.java
Date Mon, 13 Aug 2012 01:42:13 GMT
Author: brett
Date: Mon Aug 13 01:42:13 2012
New Revision: 1372238

URL: http://svn.apache.org/viewvc?rev=1372238&view=rev
Log:
[CONTINUUM-2685] if no build environment is supplied, use the default build agent instead

Modified:
    continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/AbstractReleaseAction.java

Modified: continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/AbstractReleaseAction.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/AbstractReleaseAction.java?rev=1372238&r1=1372237&r2=1372238&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/AbstractReleaseAction.java
(original)
+++ continuum/trunk/continuum-webapp/src/main/java/org/apache/continuum/web/action/AbstractReleaseAction.java
Mon Aug 13 01:42:13 2012
@@ -40,7 +40,14 @@ public class AbstractReleaseAction
     {
         if ( profile == null )
         {
-            return Collections.EMPTY_MAP;
+            if ( defaultBuildagent != null )
+            {
+                return Collections.singletonMap( DistributedReleaseUtil.KEY_BUILD_AGENT_URL,
defaultBuildagent );
+            }
+            else
+            {
+                return Collections.emptyMap();
+            }
         }
 
         Map<String, String> envVars = new HashMap<String, String>();



Mime
View raw message