- Place the coffee,html and scss files into a folder named pull_requests in the widgets folder
- Place the rb file into the jobs folder
Add nokogiri
to the gemfile:
gem 'nokogiri'
and then just run
$ bundle install
Make sure to you have a config/config.yml file.
Example Config.yml
scoverages:
- :name: SERVICENAME_FRONTEND
:scoverage: https://xxxx.co.uk/job/JOB_NAME/ws/target/scala-2.11/scoverage-report/overview.html
:title: Front End
- :name: SERVICENAME_BACKEND
:scoverage: https://xxxx.co.uk/job/JOB_NAME/ws/target/scala-2.11/scoverage-report/overview.html
:title: Back End
name - is used for dashing purposes ie this could be SERVICENAME_FRONTEND or SERVICENAME_BACKEND scoverage - is the url to your scoverage page on jenkins, the url should look like this: https://xxxx.co.uk/job/JOB_NAME/ws/target/scala-2.11/scoverage-report/overview.html
title - is the name displayed on the widget
Example of what you would add to your dashboard file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-view="Scoverage" data-id="scoverage_SERVICENAME_FRONTEND"></div>
</li>
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-view="Scoverage" data-id="scoverage_SERVICENAME_BACKEND"></div>
</li>