Monday, September 30, 2013

using Ant with Jenkins!

Call a Jenkins variable from an Ant Script like so:

<condition property="build.number" value="${env.BUILD_NUMBER}" else="0">
   <isset property="env.BUILD_NUMBER" />
</condition>

 
 

You may want to use Ant instead of NAnt (there is also an "Execute NAnt build" build step) with Jenkins as it will just jive with Java-based Jenkins out of the box where NAnt will require the ASP.NET runtime. My challenge today is to find a way to latch onto a Jenkins variable from GRUNT!

No comments:

Post a Comment