Skip to content

Commit

Permalink
[FIXED JENKINS-23509] Write Go download URLs which don't point to 302…
Browse files Browse the repository at this point in the history
… redirects.
  • Loading branch information
orrc committed Jun 20, 2014
1 parent 78d7561 commit 872558d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions golang.groovy
Expand Up @@ -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
Expand Down

0 comments on commit 872558d

Please sign in to comment.