目 录CONTENT

文章目录

jenkinsclient简单易用的jenkins SDK-jenkinsclient.md

phyger
2025-09-24 / 0 评论 / 0 点赞 / 18 阅读 / 499 字 / 正在检测是否收录...

Auto_Test_Pipline WorkflowJob http://x.x.x.22:8888/job/Auto_Test_Pipline/
xxx-FT-Pipline FreeStyleProject http://x.x.x.22:8888/job/xxz-FT-Pipline/

[root@localhost ~]#

2、查看项目详情

[root@localhost ~]# jenkins job info Auto_Test_Pipline
actions: [{}, {}, {}, {}, {}, {}, {}, {}, {"_class": "com.cloudbees.plugins.credentials.ViewCredentialsAction"}]
description: null
displayName: Auto_Test_Pipline
displayNameOrNull: null
fullDisplayName: Auto_Test_Pipline
fullName: Auto_Test_Pipline
name: Auto_Test_Pipline
url: http://x.x.x.22:8888/job/Auto_Test_Pipline/
buildable: true
builds: [{"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun", "number": 1, "url": "http://x.x.x.22:8888/job/Auto_Test_Pipline/1/"}]
color: red
firstBuild: {"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun", "number": 1, "url": "http://x.x.x.22:8888/job/Auto_Test_Pipline/1/"}
healthReport: [{"description": "Build stability: All recent builds failed.", "iconClassName": "icon-health-00to19", "iconUrl": "health-00to19.png", "score": 0}]
inQueue: false
keepDependencies: false
lastBuild: {"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun", "number": 1, "url": "http://x.x.x.22:8888/job/Auto_Test_Pipline/1/"}
lastCompletedBuild: {"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun", "number": 1, "url": "http://x.x.x.22:8888/job/Auto_Test_Pipline/1/"}
lastFailedBuild: {"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun", "number": 1, "url": "http://x.x.x.22:8888/job/Auto_Test_Pipline/1/"}
lastStableBuild: null
lastSuccessfulBuild: null
lastUnstableBuild: null
lastUnsuccessfulBuild: {"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun", "number": 1, "url": "http://x.x.x.22:8888/job/Auto_Test_Pipline/1/"}
nextBuildNumber: 2
property: []
queueItem: null
concurrentBuild: true
resumeBlocked: false

3、查看slave列表

[root@localhost ~]# jenkins nodes
节点名称 架构 可用交换空间 可用内存空间 可用临时空间 可用磁盘空间


(master) Linux (amd64) 799.23/4096.0 MB 389.78/128385.95 MB 3220446 MB 3220446 MB
Test_VM_10.x.x.x Linux (amd64) 0.0/0.0 MB 30587.82/32003.24 MB9387 MB 17359 MB
Test_VM_10.x.x.x Linux (amd64) 3968.0/3968.0 MB 12455.17/15884.35 MB43546 MB 24488 MB

[root@localhost ~]#


怎么样,是不是很简单呢!

更多用法请移步:[https://pypi.org/project/jenkinsclient/2.0/](https://pypi.org/project/jenkinsclient/2.0/)

> 以上就是今天的全部内容了,感谢您的阅读,我们下节再会。
0

评论区