Embarrassed to say this is holding me up...but how do I get the URL or Name of a Jenkins master using groovy script, when I am at the https://<JenkinsMaster>/script?
Date
Votes
1 comment
-
Daniel Ritchie looking at the wrong object... here is the URL:
def jLC = JenkinsLocationConfiguration.get()
// get Jenkins URL
thisURL = jLC.getUrl()
Please sign in to leave a comment.