#332  How to setup git code repository mirroring
Closed
Artur opened 3 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 3 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' 3 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#332
Please wait...
Page is in error, reload to recover