Change in osmo-ci[master]: jobs/redmine-fetch: close issues on gerrit merge

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Mon Nov 29 16:05:27 UTC 2021


Hello Jenkins Builder, 

I'd like you to reexamine a change. Please visit

    https://gerrit.osmocom.org/c/osmo-ci/+/26423

to look at the new patch set (#4).

Change subject: jobs/redmine-fetch: close issues on gerrit merge
......................................................................

jobs/redmine-fetch: close issues on gerrit merge

Add a job that is triggered by every gerrit merge, which translates the
GERRIT_PROJECT to the redmine project + repository and then triggers a
repository fetch by downloading the repository view url. Redmine will
then also parse the "Closes: OS#..." tags from commit messages and mark
related issues as resolved.

Redmine does not have a setting to fetch the repositories periodically
by itself, the redmine wiki recommends setting up a cron job or a
serverside git hook that also triggers the repository fetch. I have
considered implementing such a hook in gerrit instead, but then we would
not be able to see the logs as easily and notice failures.

Another consideration was fetching all redmine projects and associated
git repositories via redmine API and then just triggering a repository
fetch on all of them, in order to avoid the mapping from gerrit <>
redmine. However, the redmine API apparently doesn't list the
repositories and one would need to iterate through the projects,
recursively.

I have tested this job and verified that GERRIT_PROJECT gets set as
expected.

Closes: OS#5331
Related: https://jenkins.osmocom.org/jenkins/job/redmine-fetch/
Related: https://www.redmine.org/projects/redmine/wiki/RedmineSettings#Fetch-commits-automatically
Change-Id: Ia7c6c8426e5ca0de04378cedd0360c368e9d5027
---
A jobs/redmine-fetch.yml
1 file changed, 110 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/23/26423/4
-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/26423
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ia7c6c8426e5ca0de04378cedd0360c368e9d5027
Gerrit-Change-Number: 26423
Gerrit-PatchSet: 4
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211129/62ff73f2/attachment.htm>


More information about the gerrit-log mailing list