Skip to content

teraflik/ao-jenkins-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Jenkins API

Script to call the Jenkins API on the specified ENDPOINT to list all active jobs, with status of the last successful build of a specified job.

The client API library used is jenkinsapi.

Installation

pip install jenkinsapi

Execution

Specify your TOKEN, ENDPOINT and JOBNAME inside the script.

TOKEN = 'abcdef'
ENDPOINT = 'http://localhost:8080'
JOBNAME = 'test-job'

Then open console and run

python3 main.py

References

https://jenkinsapi.readthedocs.io/en/latest/

About

Script to call the Jenkins API on the specified ENDPOINT to list all active jobs, with status of the last successful build of a specified job.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages