Created
May 27, 2014 02:08
-
-
Save jollychang/17d440245fe550f64269 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jenkinsapi | |
from jenkinsapi.jenkins import Jenkins | |
jk = Jenkins('http://qa-dev.intra.douban.com:9999/') | |
job = jk.get_job('test_peters_master') | |
lb = job.get_last_build() | |
url = lb.python_api_url(lb.baseurl) | |
data = lb.get_data(url) | |
print data['culprits'], data['builtOn'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment