Project

General

Profile

Cron job to pull repository commits into Redmine?

Added by CS Wong over 15 years ago

Hi,

I noticed that repo commits are only pulled into Redmine from the repo when I click on the "Repository" tab, hence I cannot just subscribe to the Activities feed and wait for commits to come in. I'd like to setup a cron job to hook on to some Redmine API call to pull in commits on a periodic basis. Is there any known way to do this? Googling for "redmine svn update" brings a lot of unrelated stuff.

Thanks,
Wong


Replies (2)

RE: Cron job to pull repository commits into Redmine? - Added by CS Wong over 15 years ago

ok, I found this URL: http://www.simonecarletti.com/blog/2009/07/configuring-git-repository-with-redmine/

/usr/bin/ruby1.8 script/runner "Repository.fetch_changesets" -e production

Wonder if anyone knows whether this will update for all projects that are defined?

RE: Cron job to pull repository commits into Redmine? - Added by Eric Davis over 15 years ago

That will fetch changesets for all projects. This FAQ item has more information.

Eric Davis

    (1-2/2)