<p>osmith <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ci/+/26423">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">jobs/redmine-fetch: close issues on gerrit merge<br><br>Add a job that is triggered by every gerrit merge, which translates the<br>GERRIT_PROJECT to the redmine project + repository and then triggers a<br>repository fetch by downloading the repository view url. Redmine will<br>then also parse the "Closes: OS#..." tags from commit messages and mark<br>related issues as resolved.<br><br>Redmine does not have a setting to fetch the repositories periodically<br>by itself, the redmine wiki recommends setting up a cron job or a<br>serverside git hook that also triggers the repository fetch. I have<br>considered implementing such a hook in gerrit instead, but then we would<br>not be able to see the logs as easily and notice failures.<br><br>Another consideration was fetching all redmine projects and associated<br>git repositories via redmine API and then just triggering a repository<br>fetch on all of them, in order to avoid the mapping from gerrit <><br>redmine. However, the redmine API apparently doesn't list the<br>repositories and one would need to iterate through the projects,<br>recursively.<br><br>I have tested this job and verified that GERRIT_PROJECT gets set as<br>expected.<br><br>Closes: OS#5331<br>Related: https://jenkins.osmocom.org/jenkins/job/redmine-fetch/<br>Related: https://www.redmine.org/projects/redmine/wiki/RedmineSettings#Fetch-commits-automatically<br>Change-Id: Ia7c6c8426e5ca0de04378cedd0360c368e9d5027<br>---<br>A jobs/redmine-fetch.yml<br>1 file changed, 110 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/23/26423/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ci/+/26423">change 26423</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ci/+/26423"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia7c6c8426e5ca0de04378cedd0360c368e9d5027 </div>
<div style="display:none"> Gerrit-Change-Number: 26423 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>