Created
February 6, 2018 03:28
-
-
Save metametadata/b0c84e158bf7293f0f7fa6379f878cb7 to your computer and use it in GitHub Desktop.
Read port from "Jenkins URL" field that is set in http://<jenkins>/configure.def
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def jenkinsPort = new URI(jenkins.model.JenkinsLocationConfiguration.get().getUrl()).port |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment