- 博客(6)
- 收藏
- 关注
原创 python2 之BeautifulSoup用法
import requestsimport sysfrom bs4 import BeautifulSoupprint 'python版本信息:%s.%s.%s ' % (sys.version_info[0], sys.version_info[1], sys.version_info[2])request = requests.get('http://python123.io/ws/demo....
2018-03-06 15:09:15
1269
原创 Python-jenkins模块之folder相关操作
import jenkinsserver = jenkins.Jenkins('http://localhost/jenkins', username='username', password='password')# 确保jenkins安装了Folders Pluginserver.create_job('folder', jenkins.EMPTY_FOLDER_XML) # 创建一...
2018-02-28 10:32:40
3405
原创 Python-jenkins模块之plugin相关操作
import jenkinsserver = jenkins.Jenkins('http://localhost/jenkins', username='username', password='password')# 获取所有plugins信息print server.get_plugins()# 获取指定plugin的信息print server.get_plugin_info('...
2018-02-28 09:51:00
607
原创 Python-jenkins模块之node节点相关操作
import jenkinsserver = jenkins.Jenkins('http://localhost/jenkins', username='username', password='password')# 通过参数创建一个node, 需要先将Credentials创建好# 设置登录参数值params = { 'port': '22', 'username': '...
2018-02-27 19:02:45
3692
2
原创 Python-jenkins模块之view相关操作
import jenkinsserver = jenkins.Jenkins('http://localhost/jenkins', username='username', password='password')print server.get_view_name('view2')print server.get_view_config('view2') # view的配置信息# 获...
2018-02-27 18:35:52
1972
原创 Python-jenkins模块之job相关操作
实验版本:python_jenkins-0.4.15测试代码如下:# coding: utf-8import jenkinsimport datetimeserver = jenkins.Jenkins('http://localhost/jenkins', username='username', password='password')user = server.get_whoami()v...
2018-02-27 15:27:28
14689
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人