Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
#-*-coding:utf-8-*-
import urllib, json , os
from shutil import rmtree
url = 'http://yourjenkinsbaseurl/api/python?pretty=true'
jenkins_workspace_path = '/var/lib/jenkins/workspaces/'
data = eval(urllib.urlopen(url).read())
jobnames = []
#!/usr/bin/env python
#-*-coding:utf-8-*-
import urllib, json , os
from shutil import rmtree
url = 'http:/yourjenkinsbaseurl/api/python?pretty=true'
jenkins_workspace_path = '/data/jenkins/workspace/'
data = eval(urllib.urlopen(url).read())
jobnames = []