Skip to content

Instantly share code, notes, and snippets.

@saidsef
Last active December 13, 2017 22:43
Show Gist options
  • Save saidsef/829f46b0457a5fd4aa98febc4157fd06 to your computer and use it in GitHub Desktop.
Save saidsef/829f46b0457a5fd4aa98febc4157fd06 to your computer and use it in GitHub Desktop.
import org.jsoup.Jsoup
def document = Jsoup.connect('https://api.github.com/repos/saidsef/alpine-jenkins-dockerfile-demo/releases/latest')ignoreContentType(true).execute().body()
def json = new groovy.json.JsonSlurper().parseText(document)
println(json.tag_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment