Project

General

Profile

task #6006

setup automatic refresh of repositories in Redmine

Added by Andreas Kohlbecker about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
New
Category:
devOps
Target version:
-
Start date:
07/25/2016
Due date:
% Done:

100%

Severity:
normal
Tags:

Description

This needs to be done for all repos in redmine:

http://www.redmine.org/projects/redmine/wiki/HowTo_setup_automatic_refresh_of_repositories_in_Redmine_on_commit

done for all existing subprojects of EDIT:

  • edit svn with /var/svn/edit/hooks/user-post-commit - no longer needed -
  • cdm-dataportal.git
  • cdmlib-apps
  • cdmlib
  • taxeditor

History

#1 Updated by Andreas Kohlbecker about 3 years ago

  • Description updated (diff)
  • % Done changed from 0 to 20

#2 Updated by Andreas Kohlbecker about 3 years ago

  • Description updated (diff)

#3 Updated by Andreas Müller about 3 years ago

Andreas Kohlbecker wrote:

done for:

  • edit svn with /var/svn/edit/hooks/user-post-commit

Seems like it didn't work. I had to update manually again

#4 Updated by Andreas Müller about 3 years ago

  • Category set to devOps

#5 Updated by Andreas Müller about 3 years ago

  • Assignee set to Andreas Kohlbecker

#6 Updated by Andreas Kohlbecker about 3 years ago

  • Description updated (diff)
  • % Done changed from 20 to 30

Andreas Müller wrote:

Andreas Kohlbecker wrote:

done for:

  • edit svn with /var/svn/edit/hooks/user-post-commit

Seems like it didn't work. I had to update manually again

There was a permission problem with the post commit hook

#7 Updated by Andreas Kohlbecker about 3 years ago

  • Description updated (diff)

the SVN is no longer synced with the git repositories. The svn repos which have been migrated to git are only archives and have readonly access. The refresh must therefore only configured in git.

I created a generic post-receive hook which can be configured individually for the specific git repos:

/var/git/.hooks

#8 Updated by Andreas Kohlbecker about 3 years ago

  • Description updated (diff)

I tested the hook, it works!

#9 Updated by Andreas Kohlbecker about 3 years ago

  • Status changed from New to Closed
  • Keywords set to redmine, git

No problems so far, the refresh works for all configured repos.

#10 Updated by Andreas Kohlbecker almost 3 years ago

  • % Done changed from 30 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)