968e1bd58f
Add lastcomment dashboad to the collection of third party CI tools so it can be worked on via the standard gerrit workflow. lastcomment is an alternative monitoring scoreboard that uses gerrit's REST API as the data source. It was designed to address the developer's question, is CI system X running/reliable or not? original source: https://github.com/jogo/lastcomment Change-Id: I6bb0f321e1885999c9e20f74417dad8768c24c52
21 lines
710 B
Plaintext
21 lines
710 B
Plaintext
#cloud-config
|
|
|
|
# Cloud init config to serve lastcomment json data
|
|
# Serves up last comment report at 0.0.0.0/index.html
|
|
# Tested on ubuntu
|
|
# https://github.com/jogo/lastcomment
|
|
|
|
repo_update: true
|
|
repo_upgrade: all
|
|
|
|
packages:
|
|
- git
|
|
- nginx
|
|
|
|
runcmd:
|
|
- git clone https://github.com/jogo/lastcomment.git /root/lastcomment
|
|
- rm /usr/share/nginx/html/index.html
|
|
- cp /root/lastcomment/report.html /usr/share/nginx/html/index.html
|
|
- /root/lastcomment/lastcomment.py -f /root/lastcomment/ci.yaml -c 100 --json /usr/share/nginx/html/lastcomment.json
|
|
- (crontab -l ; echo "*/20 * * * * /root/lastcomment/lastcomment.py -f /root/lastcomment/ci.yaml -c 100 --json /usr/share/nginx/html/lastcomment.json") | crontab
|