From 3d34771e759c112fdc26f6d9ea1f8ef445c15eaf Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 26 Jan 2018 19:46:12 -0500 Subject: Use curl. Why not. --- src/edu/stsci/CondaInstaller.groovy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/edu/stsci/CondaInstaller.groovy b/src/edu/stsci/CondaInstaller.groovy index 0c3b3e6..5c27d63 100644 --- a/src/edu/stsci/CondaInstaller.groovy +++ b/src/edu/stsci/CondaInstaller.groovy @@ -32,11 +32,18 @@ class CondaInstaller implements Serializable { void download() { println("${this.ident} Downloading $url") + cmd = "curl -qL ${this.url}" + proc = cmd.execute() + proc.inputStream.eachLine { println(it) } + + // Whatever Jenkins... + /* File fp = new File(this.installer) def body = fp.newOutputStream() body << new URL(this.url).openStream() body.close() println("${this.ident} Received ${fp.length()} bytes") + */ } int install() { -- cgit