Thank you! That worked.

On Thursday, July 23, 2015 at 5:59:21 PM UTC-7, Christopher Orr wrote:
>
> On 24/07/15 01:02, Mandy wrote: 
> > Jenkins build log shows "Started by remote host xx.xx.xx.xx". Is there a 
> > way to access this IP address in a groovy script? 
>
> I imagine something like this should work, if you're using the Groovy 
> Script plugin: 
>
> build.getCauses().grep(hudson.model.Cause.RemoteCause).each { 
>    println it.getAddr() 
> } 
>
> Regards, 
> Chris 
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ea2a234e-69a8-48e2-8869-631aea42838a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to