Hi, thanks for your answer :)
But how can I inject this variable? Is it like this:
withEnv(["ip"]) { //Script for getting the ip }
Sorry I'm a newby in Jenkins and Groovy. How can I set the scrpit security
for allow binary API calls?
Am Dienstag, 27. Dezember 2016 13:45:56 UTC+1 schrieb Andrea
there is a withEnv() wrapper, see
https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#managing-the-environment.
In order to use it in Pipeline with a similar code, you will likely need to
allow several binary API calls in script security. Not sur eif it's
convenient
BR, Oleg
Hi @ all,
I have a pipeline job in jenkins 2.36, which can be triggered by a remote
http-call. Now I have to inject the ip-address of the calling client. In a
normal job I did this with the EnvInject-Plugin with following script:
import hudson.model.*
import static hudson.model.Cause.RemoteCause