jenkinsapi抓取jenkins网页信息
2021-07-02 19:12
标签:python http pass import jobs build jenkin follow min #!/usr/bin/python #coding:utf-8 from jenkinsapi.jenkins import Jenkins def get_server_instance(): server = get_server_instance() print(server.version) (显示jenkins版本) print(server.keys()) jenkinsapi抓取jenkins网页信息 标签:python http pass import jobs build jenkin follow min 原文地址:http://blog.51cto.com/yangzhiming/2313626pip install jenkinsapi
vi aa.py
from jenkinsapi.build import Build
server = Jenkins(‘http://10.0.1.2:8080/jenkins‘, username=‘ming‘, password=‘xxxxxx‘)
return server
print(server.get_jobs_list()) (显示jenkins上所有job信息)
文章标题:jenkinsapi抓取jenkins网页信息
文章链接:http://soscw.com/index.php/essay/100929.html