de-poltorasky / redmine_git_sync

1 stars 0 forks source link

Redmine Git Sync Plugin

This Redmine plugin enables synchronization of Git repositories with Redmine projects. It allows users to clone or update Git repositories directly into the Redmine environment.

Features

Installation

  1. Clone the repository:
    
    cd /path/to/redmine/plugins
    git clone https://github.com/de-poltorasky/redmine_git_sync.git
    bundle install
    bundle exec rake redmine:plugins:migrate RAILS_ENV=production
    sudo systemctl restart redmine

Usage

Navigate to the project in Redmine.

image

Configuration

Viewing Repositories

After synchronization, repositories are stored in the files/git_repositories directory. The plugin displays: Identifier: Extracted from the repository URL. Path: Local filesystem path with .git appended. Contents: List of files within the repository.

image

Note: This plugin only performs synchronization. For tracking and other SCM functionalities, use Redmine's built-in Git SCM feature using output data.

image

Git Repository Synchronization Script

Using the Bash script located in the bash folder, you can automate the synchronization of all branches across multiple Git repositories with their remote sources. By setting up a cron job for this script, each repository will remain up-to-date automatically. The script switches to each branch, pulls the latest changes, and returns to the originally active branch, making it ideal for environments that require regular repository updates.

Licence

Ce projet est sous licence MIT. Voir le fichier LICENSE pour plus de détails.