0

How to return Jenkins Master Name or URL using Groovy?

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?

1 comment

  • 0
    Avatar
    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.