Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make it possible to add enother env variable so no version addition w…

…ill happen - for real releases
  • Loading branch information...
commit 1b9dfcc02dc438205351b85383825a459298c6a9 1 parent ab22545
Ola Bini authored April 22, 2011

Showing 2 changed files with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  build.xml
  2. 4  ioke-ikc.build
5  build.xml
@@ -6,6 +6,11 @@
6 6
   </description>
7 7
 
8 8
   <property environment="env" /> 
  9
+
  10
+  <condition property="VERSION_ADDITION" value=""> 
  11
+    <isset property="env.BUILD_RELEASE_VERSION" />
  12
+  </condition>
  13
+
9 14
   <condition property="VERSION_ADDITION" value="-p${env.GO_PIPELINE_COUNTER}"> 
10 15
     <isset property="env.ADD_SNAPSHOT_VERSION" />
11 16
   </condition>
4  ioke-ikc.build
@@ -41,6 +41,10 @@
41 41
 
42 42
   <property name="VERSION_ADDITION" value="${version::extract-property('VERSION_ADDITION', 'version.properties')}" />
43 43
 
  44
+  <if test="${environment::variable-exists('BUILD_RELEASE_VERSION')}">
  45
+    <property name="VERSION_ADDITION" value="" />
  46
+  </if>
  47
+
44 48
   <if test="${environment::variable-exists('ADD_SNAPSHOT_VERSION')}">
45 49
     <property name="VERSION_ADDITION" value="-p${environment::get-variable('GO_PIPELINE_COUNTER')}" />
46 50
   </if>

0 notes on commit 1b9dfcc

Please sign in to comment.
Something went wrong with that request. Please try again.