Answer the question
In order to leave comments, you need to log in
How to get job fields from Jenkins CI system with Python 3.4 script?
Good afternoon, please tell me, is it possible to pull data from the Jenkins CI system using Python?
You need to get the python 3.4 script for the following fields: build description, build number, date, author, and result (success, failure, cancellation).
Or maybe someone has a manual on possible commands for working with Jenkins from the outside?
Answer the question
In order to leave comments, you need to log in
We managed to solve the problem on our own, thank you all. The most normal API for Jenkins is jenkinsapi. We put
it through
pip install jenkinsapior any other way you like.
#Необходимые библиотеки
import jenkinsapi
from jenkinsapi.jenkins import Jenkins
jenkinsci = Jenkins('http://localhost:8080') #путь к Jenkins
print(jenkinsci.version) #Проверяем версию
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question