Skip to content

Instantly share code, notes, and snippets.

@manku-timma
Created July 28, 2018 13:32
Show Gist options
  • Save manku-timma/e1314f0ebc8071812a1bcb18b13b7874 to your computer and use it in GitHub Desktop.
Save manku-timma/e1314f0ebc8071812a1bcb18b13b7874 to your computer and use it in GitHub Desktop.
Download the latest unit test run status for Apache Spark 2.2.1 from AMPLab Jenkins instance
import sys
import json
import requests
response = requests.get('https://amplab.cs.berkeley.edu/jenkins/job/spark-branch-2.2-test-maven-hadoop-2.6/lastSuccessfulBuild/api/json')
parsed = json.load(sys.stdin)
print json.dumps(parsed['actions'][7], indent=4, sort_keys=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment