continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r312846 - in /maven/continuum/trunk: continuum-core/src/main/java/org/apache/maven/continuum/core/action/ExecuteBuilderContinuumAction.java continuum-web/src/main/resources/templates/screens/ProjectBuilds.vm
Date Tue, 11 Oct 2005 09:33:01 GMT
Author: evenisse
Date: Tue Oct 11 02:32:54 2005
New Revision: 312846

URL: http://svn.apache.org/viewcvs?rev=312846&view=rev
Log:
[CONTINUUM-339]
o Print build number only when build is success
o Increment build number only on build success

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ExecuteBuilderContinuumAction.java
    maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/ProjectBuilds.vm

Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ExecuteBuilderContinuumAction.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ExecuteBuilderContinuumAction.java?rev=312846&r1=312845&r2=312846&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ExecuteBuilderContinuumAction.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ExecuteBuilderContinuumAction.java
Tue Oct 11 02:32:54 2005
@@ -137,7 +137,10 @@
         {
             build.setEndTime( new Date().getTime() );
 
-            project.setBuildNumber( project.getBuildNumber() + 1 );
+            if ( build.getState() == ContinuumProjectState.OK )
+            {
+                project.setBuildNumber( project.getBuildNumber() + 1 );
+            }
 
             project.setLatestBuildId( build.getId() );
 

Modified: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/ProjectBuilds.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/ProjectBuilds.vm?rev=312846&r1=312845&r2=312846&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/ProjectBuilds.vm
(original)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/ProjectBuilds.vm
Tue Oct 11 02:32:54 2005
@@ -32,7 +32,7 @@
       </tr>
       #foreach ( $build in $builds )
       <tr class="$css.nextClass">
-        <td>$build.buildNumber</td>
+        <td>#if ( $build.state == 2 ) $build.buildNumber #end</td>
         <td>$date.format('medium',$build.startTime)</td>
         <td>$date.format('medium',$build.endTime)</td>
         <td>$state.generate($build)</td>



Mime
View raw message