Get jenkins prefix in pipeline groovy

9 views
Skip to first unread message

Jonathan Hodgson

unread,
Oct 26, 2016, 1:49:43 PM10/26/16
to Jenkins Users
Hi,

My jenkins instance is accessible on


with "jenkins" being set by --prefix=jenkins in the jenkins defailt file.

Standard.

Since I'd like my scripts to be portable, I don't want to hardcode the "jenkins" into paths in the script, so how can I get this value from within Groovy?

Further to that, is there anywere that documents how to get this kind of useful information? I had to do a fair bit of searching to find how to get the user name and email for example.
Reply all
Reply to author
Forward
0 new messages