continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r291133 - /maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ExecuteBuilderContinuumAction.java
Date Fri, 23 Sep 2005 14:49:36 GMT
Author: evenisse
Date: Fri Sep 23 07:49:33 2005
New Revision: 291133

URL: http://svn.apache.org/viewcvs?rev=291133&view=rev
Log:
[CONTINUUM-316] Fix build number

Modified:
    maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/core/action/ExecuteBuilderContinuumAction.java

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=291133&r1=291132&r2=291133&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
Fri Sep 23 07:49:33 2005
@@ -87,6 +87,7 @@
 
         // TODO: select actualy build def
         List buildDefinitions = project.getBuildDefinitions();
+
         BuildDefinition buildDefinition = (BuildDefinition) buildDefinitions.iterator().next();
 
         build.setScmResult( scmResult );
@@ -121,11 +122,19 @@
         {
             build.setEndTime( new Date().getTime() );
 
+            project.setBuildNumber( project.getBuildNumber() + 1 );
+
+            project.setLatestBuildId( build.getId() );
+
+            build.setBuildNumber( project.getBuildNumber() );
+
             // ----------------------------------------------------------------------
             // Copy over the build result
             // ----------------------------------------------------------------------
 
             store.updateBuildResult( build );
+
+            store.updateProject( project );
 
             notifier.goalsCompleted( project, build );
         }



Mime
View raw message