From 7ed7718eabc3eec616e1aaf95470d05b8836a72f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 26 Jan 2018 19:49:10 -0500 Subject: Use curl. This time. --- src/edu/stsci/CondaInstaller.groovy | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/edu/stsci/CondaInstaller.groovy b/src/edu/stsci/CondaInstaller.groovy index 5c27d63..d359992 100644 --- a/src/edu/stsci/CondaInstaller.groovy +++ b/src/edu/stsci/CondaInstaller.groovy @@ -32,9 +32,9 @@ class CondaInstaller implements Serializable { void download() { println("${this.ident} Downloading $url") - cmd = "curl -qL ${this.url}" - proc = cmd.execute() - proc.inputStream.eachLine { println(it) } + def cmd = "curl -qL ${this.url}" + def proc = cmd.execute() + def proc.inputStream.eachLine { println(it) } // Whatever Jenkins... /* @@ -44,6 +44,7 @@ class CondaInstaller implements Serializable { body.close() println("${this.ident} Received ${fp.length()} bytes") */ + return proc.exitValue() } int install() { -- cgit