Created
December 17, 2020 12:38
-
-
Save jarryDk/340a331b4b50b13578faeab27384db39 to your computer and use it in GitHub Desktop.
Can Jenkins Acesses dr.dk from Script Console
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 sout = new StringBuilder(), serr = new StringBuilder() | |
def proc = 'curl -ivk https://dr.dk'.execute() | |
proc.consumeProcessOutput(sout, serr) | |
proc.waitForOrKill(1000) | |
println "out> $sout err> $serr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment