import jenkins,requests
jenkins_server_url = 'http://jenkins.abc.com/'
username= "zhangshan"
password= '123456'
response=requests.get("https://jenkins.mot.com/queue/api/json",auth=(username,password)).text
1:得到当前jenkins的queue
requests.get("https://jenkins.mot.com/queue/api/json",auth=(username,password)).text