diff options
-rw-r--r-- | src/edu/stsci/CondaInstaller.groovy | 7 |
1 files changed, 7 insertions, 0 deletions
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() { |