A script, in Python, that uses Jenkins' API to get a list of jobs and their status from a given Jenkins instance. The status for each job are stored in a sqlite database along with the time for when it was checked.
Following the following process to run the python script
-
Clone repo and change directory to the project folder from any suitable terminal
-
Start virtual environment
source bin/activate
-
Create a
.env
file and provide the following environment variableJENKINS_SERVER=Jenkins server address such as ci.cgi.org:8080 JENKINS_USER=Valid username JENKINS_TOKEN=Token provided for user
Note: The Jenkins server address should be without
http://
-
Run the application
python app.py
-
In order to view the record, use an sqlite browser to open the generated
data.db
file in the project directory -
To exist from the terminal, enter
deactivate
and press enter to exit