#!/bin/bash # Flush the gerrit 'project_list' cache. # This is meant to be run as a cron job. The user enabled in gerrit is called # 'linaro-gerrit-bot', and needs its own ssh key. SSH_USER='linaro-gerrit-bot' SSH_KEY=$HOME/.ssh/id_rsa PORT=29418 SERVER='localhost' ssh -i $SSH_KEY -p $PORT $SSH_USER@$SERVER gerrit flush-caches --cache project_list