Christopher Orr
unread,Jul 23, 2015, 8:59:21 PM7/23/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
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