Permalink
Browse files

Addded build-XX in Hudson Artificat names

Uses Hudson propagated BUILD_NUMBER property to add additional
build identification tag with each snapshot name.
  • Loading branch information...
1 parent 26a66ee commit 2addb2d1df4a9231da2ce570ee59665908d5e7df @bbansal bbansal committed Jun 23, 2009
Showing with 7 additions and 1 deletion.
  1. +1 −1 build.properties
  2. +6 −0 build.xml
View
2 build.properties
@@ -33,4 +33,4 @@ tomcat.manager.password=tomcat
tomcat.context=/voldemort
## Release
-curr.release=0.52-snapshot
+curr.release.base=0.52-snapshot
View
6 build.xml
@@ -15,6 +15,12 @@
<pathelement path="${classes.dir}" />
</path>
+<!-- set the build number based on environment variable, otherwise blank -->
+ <property environment="env" description="System environment variables (including those set by Hudson)"/>
+ <condition property="curr.release" value="${curr.release.base}-build-${env.BUILD_NUMBER}" else="${curr.release.base}">
+ <isset property="env.BUILD_NUMBER" />
+ </condition>
+
<path id="contrib-classpath">
<fileset dir="${dist.dir}">
<include name="${name}-${curr.release}.jar" />

0 comments on commit 2addb2d

Please sign in to comment.