Has nothing to do with Groovy. You always get a fresh copy of the build 
environment:
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/AbstractBuild.java#L1009

getEnvironments() is probably what you want.

On 22.10.2014, at 19:36, Ginga, Dick <[email protected]> wrote:

> I am admittedly a novice at Groovy but this script does not complain about 
> the "put" operation but does not apparently perform it:
> label-name is a parameter in that build.
>  
> <image001.png>
>  
> Dick Ginga, Informatics R&D
> PerkinElmer Inc. | For the Better
> HUMAN HEALTH | ENVIRONMENTAL HEALTH
> 940 Winter Street, Waltham MA 02451
>  
> [email protected]  
> Mobile - 508-847-1434
> Office - 781-663-6947
> 
>  
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to