Having looked long and far it was very difficult to find a good dashboard to for display the statuses of your jenkins job. So I decided to create on of my own.
How it works:
- This is a Ruby backend so you need to have Ruby installed
- Once ruby is installed, install the bundler gem gem install bundler
- Next run bundle install.
- Run the server: ruby jenkins_api_server_general.rb
- Once the server is running you can open the 2 html files: jenkins_jobs.html and jenkins_multi_job.html
In app/js/services.js
file you need to update the
following lines of code to point to your Jenkins box:
// the host:port of the server running the ruby server
.value('localUri', 'localhost:4567')
// the host:port of the jenkins server
.value('baseUri', 'localhost:8080')
The jenkins_jobs.html file will show all the jenkins job you have.
The jenkins_mutli_job.html file shows you all the multi-job you have setup in jenkins. In order to see this you must update the following code
get "/job_info/multi_jobs" do
multi_job_names = ["JobName1","JobName2"]
In file jenkins_api.rb the very first line, update with the ip of their Jenkins box
$client = JenkinsApi::Client.new(:server_ip => '')
If the jenkins box requires username and password you can add that as well
$client = JenkinsApi::Client.new(:server_ip => '',
:username => 'somename', :password => 'secret password')
License: Apache 2.0 2014-03-28 Snap-Interactive Inc.