That did the trick! Thanks!
On Wednesday, December 4, 2013 11:12:18 PM UTC-7, Daniel Beck wrote:
>
> currentBuild.number is also null?
>
> On 05.12.2013, at 02:04, Bill Wonch >
> wrote:
>
> > Hi everyone -
> >
> > I've got the following code:
> >
> > import hudson.model.*;
> > import huds
currentBuild.number is also null?
On 05.12.2013, at 02:04, Bill Wonch wrote:
> Hi everyone -
>
> I've got the following code:
>
> import hudson.model.*;
> import hudson.util.*;
>
> def thr = Thread.currentThread();
> def currentBuild = thr?.executable;
>
> def buildNumberField = "BUILD_NUMBE
Hi everyone -
I've got the following code:
import hudson.model.*;
import hudson.util.*;
def thr = Thread.currentThread();
def currentBuild = thr?.executable;
def buildNumberField = "BUILD_NUMBER"
def resolver = currentBuild.buildVariableResolver
def buildNumber = resolver.resolve(buildNumberFie