Skip to content

Commit

Permalink
Addded build-XX in Hudson Artificat names
Browse files Browse the repository at this point in the history
Uses Hudson propagated BUILD_NUMBER property to add additional
build identification tag with each snapshot name.
  • Loading branch information
bbansal committed Jun 23, 2009
1 parent 26a66ee commit 2addb2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.properties
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ tomcat.manager.password=tomcat
tomcat.context=/voldemort tomcat.context=/voldemort


## Release ## Release
curr.release=0.52-snapshot curr.release.base=0.52-snapshot
6 changes: 6 additions & 0 deletions build.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
<pathelement path="${classes.dir}" /> <pathelement path="${classes.dir}" />
</path> </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"> <path id="contrib-classpath">
<fileset dir="${dist.dir}"> <fileset dir="${dist.dir}">
<include name="${name}-${curr.release}.jar" /> <include name="${name}-${curr.release}.jar" />
Expand Down

0 comments on commit 2addb2d

Please sign in to comment.