py3status-jenkins-status¶
jenkins_status¶
Displays status of jenkins jobs.
This py3status module displays the status of desired jenkins jobs. The desired jenkins jobs are defined by configuration. The current status of each job is represented by the i3status colors. In default configuration of the colors is as following:
- Configuration parameters:
cache_timeoutRenew of jenkins job status interval in seconds (default 60)jenkins_urlThe base URL of jenkins serverjenkins_pass_pathPath to jenkins credentials, if password-store is using.jenkins_usernameUsername for jenkins server, if unsecure credentials storage method is using.jenkins_passwordPassword for jenkins server, if unsecure credentials storage method is using.text_statusText displayed for jenkins job status (default “S”).text_not_connectedText displayed if jenkins server is not reachable (default “-“).text_common_errorText displayed if an error occurred (default “E”).text_job_separatorSeparator between the Jenkins job status.jobsList of jenkins jobs.
- Configuration parameter for jobs entries:
nameJenkins job name.text_statusText dispayls for this jenkins job status. If not set, the common text_status will be displayed.
Format placeholders:
format: {jobs} dispay the configured jenkins jobs status format_job: {status} display the status of a jenkins job
- Color options:
color_goodjob status “SUCCESS”color_degradedjob status “UNSTABIL”color_badjob status “FAILURE”color_abortedjob status “ABORTED”color_badcommon error or jenkins server not reachable
- Requires:
passRecommended storage of jenkins credentials.
Example:
jenkins_status {
jenkins_url = "https://myjenkins:1234"
jenkins_pass_path = "Jenkins"
jobs = [
{
"name": "job1",
"text_status": "J1"
},
{
"name": "job2",
"text_status": "J2"
}
]
}
author Andreas Schmidt
license MIT