All Projects → joelee2012 → api4jenkins

joelee2012 / api4jenkins

Licence: Apache-2.0 License
Python client library for Jenkins API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to api4jenkins

gitops-playground
Reproducible infrastructure to showcase GitOps workflows and evaluate different GitOps Operators on Kubernetes
Stars: ✭ 77 (+79.07%)
Mutual labels:  jenkins
github-api-plugin
This plugin packages stock github-api library
Stars: ✭ 20 (-53.49%)
Mutual labels:  jenkins
hellonode
A Hello World HTTP server in Node, with a Dockerfile and a Jenkinsfile
Stars: ✭ 51 (+18.6%)
Mutual labels:  jenkins
postbuildscript-plugin
The PostBuildScript Jenkins plugin lets you execute a set of scripts at the end of the build depending on the build status.
Stars: ✭ 40 (-6.98%)
Mutual labels:  jenkins
fastlane-plugins
自创造超实用性 Fastlane 插件和自定义 actions 的聚合仓库
Stars: ✭ 19 (-55.81%)
Mutual labels:  jenkins
pm2-githook
receive webhook from github/gitlab and ask pm2 to reload the application for you
Stars: ✭ 39 (-9.3%)
Mutual labels:  jenkins
cheat-sheet-pdf
📜 A Cheat-Sheet Collection from the WWW
Stars: ✭ 728 (+1593.02%)
Mutual labels:  jenkins
rurality
开源运维平台设计及开发样例、CMS、RBAC、python开发教程、管理系统设计及开发样例、jenkinsfile(pipeline)/ansible使用教程,一切想到的,想不到的,应有尽有
Stars: ✭ 51 (+18.6%)
Mutual labels:  jenkins
docker-commons-plugin
API plugin, which provides the common shared functionality for various Docker-related plugins.
Stars: ✭ 38 (-11.63%)
Mutual labels:  jenkins
jwql
The James Webb Space Telescope Quicklook Application
Stars: ✭ 42 (-2.33%)
Mutual labels:  jenkins
buildserver
Multiplatform development environment with Vagrant and Ansible
Stars: ✭ 18 (-58.14%)
Mutual labels:  jenkins
ansible-role-solita.jenkins
Ansible role: Jenkins, completely configured with Ansible
Stars: ✭ 21 (-51.16%)
Mutual labels:  jenkins
docker
collection of docker / docker-compose files, dind, gitlab, jenkins, mongo, mysql, oracle, rabbitmq, redis, sonarqube
Stars: ✭ 25 (-41.86%)
Mutual labels:  jenkins
jenkins-in-docker
Instructions
Stars: ✭ 18 (-58.14%)
Mutual labels:  jenkins
job-dsl-playground
An app for debugging Groovy scripts using the Jenkins Job DSL
Stars: ✭ 84 (+95.35%)
Mutual labels:  jenkins
corebot
A bot to trigger Rundeck and Jenkins jobs from Slack.
Stars: ✭ 69 (+60.47%)
Mutual labels:  jenkins
pipeline-library
Shared libraries for Jenkinsfiles with unit tests
Stars: ✭ 22 (-48.84%)
Mutual labels:  jenkins
pipeline-maven-plugin
Pipeline Maven Plugin
Stars: ✭ 50 (+16.28%)
Mutual labels:  jenkins
gitops-build-lib
Jenkins pipeline shared library for automating deployments via GitOps
Stars: ✭ 23 (-46.51%)
Mutual labels:  jenkins
cloud-s4-sdk-pipeline-docker
The Cloud SDK continuous delivery infrastructure makes heavy use of docker images. This are the docker sources of these images.
Stars: ✭ 13 (-69.77%)
Mutual labels:  jenkins

Tests CodeQL Coverage Status codecov PyPI PyPI - Python Version PyPI - Wheel Documentation Status GitHub

Jenkins Python Client

Python3 client library for Jenkins API.

Features

  • Object oriented, each Jenkins item has corresponding class, easy to use and extend
  • Base on api/json, easy to query/filter attribute of item
  • Setup relationship between class just like Jenkins item
  • Support api for almost every Jenkins item
  • Pythonic
  • Test with latest Jenkins LTS

Installation

python3 -m pip install api4jenkins

Quick start

>>> from api4jenkins import Jenkins
>>> j = Jenkins('http://127.0.0.1:8080/', auth=('admin', 'admin'))
>>> j.version
'2.176.2'
>>> xml = """<?xml version='1.1' encoding='UTF-8'?>
... <project>
...   <builders>
...     <hudson.tasks.Shell>
...       <command>echo $JENKINS_VERSION</command>
...     </hudson.tasks.Shell>
...   </builders>
... </project>"""
>>> j.create_job('freestylejob', xml)
>>> import time
>>> item = j.build_job('freestylejob')
>>> while not item.get_build():
...      time.sleep(1)
>>> build = item.get_build()
>>> for line in build.progressive_output():
...     print(line)
...
Started by user admin
Running as SYSTEM
Building in workspace /var/jenkins_home/workspace/freestylejob
[freestylejob] $ /bin/sh -xe /tmp/jenkins2989549474028065940.sh
+ echo $JENKINS_VERSION
2.176.2
Finished: SUCCESS
>>> build.building
False
>>> build.result
'SUCCESS'

Documentation

User Guide and API Reference is available on Read the Docs

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].