How to setup git code repository mirroring (OD-332)
Artur opened 5 years ago

I know 1dev does not support full project mirroring yet.

However, it should be possible to do just 1-way source code repository mirroring.

I noticed, you have something like this implemented for the onedev-server project repository, so it pushes code changes to GitHub repository on each commit. I can copy this and implement something like this as well.

However, I would like to have something other way around. To make 1dev to periodically pull code from remote git repository to 1dev's local repository to keep in sync with remote changes.

I guess, this can be made as periodically executed build script. The main question mark, of course, is the "periodically executed" part. How to make the build to execute on regular basis, like every hour or once a day? Do you have any examples of periodic builds?

  • Robin Shen commented 5 years ago

    On build spec of your master branch, create a job, open the triggers & params section, add a trigger of type Cron schedule.

  • Robin Shen changed state to 'Closed' 5 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
OD-332
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover