Hi,

You can get that value with:

build.number

For example (without any really valid purpose):

return (build.number > 1)

Any script evaluation errors will be redirected to the application log.

I hope be useful.

Best regards,
Rachel


El lunes, 14 de noviembre de 2016, 19:18:18 (UTC+1), [email protected] 
escribió:
>
> Hi Folks,
>
> I am using Promoted Build plugin. And using some custom groovy scripts to 
> validate the build! I wanted to access the value of BUILD_NUMBER from the 
> groovy script. Can anyone suggest me how i can achieve this?
>
> Another thing i am writing println statement in this groovy script but its 
> no where getting logged. Any suggestion to debug the script flow how can i 
> log the info ?
>
> Thanks  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/c4de646f-f15e-4d66-ad5a-299e2ccd25bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to