Skip to content
Permalink
Browse files

[FIXED JENKINS-23509] Write Go download URLs which don't point to 302…

… redirects.
  • Loading branch information...
orrc committed Jun 20, 2014
1 parent 78d7561 commit 872558d37a776d80f78cbcc7152844e1bf541153
Showing with 2 additions and 2 deletions.
  1. +2 −2 golang.groovy
@@ -21,8 +21,8 @@ webClient.setJavaScriptEnabled(false);

// Fetch URLs in order from latest...
HtmlPage latest = webClient.getPage(latestUrl)
latest.selectNodes("//td/a[starts-with(@href, '/dl/go')]").each { HtmlAnchor e ->
urls << "http://golang.org" + e.getHrefAttribute()
latest.selectNodes("//td/a[starts-with(@href, '/dl/')]").each { HtmlAnchor e ->
urls << e.getHrefAttribute().replace("/dl/", "https://storage.googleapis.com/golang/")
}

// ..to oldest

0 comments on commit 872558d

Please sign in to comment.
You can’t perform that action at this time.