Skip to content

Project level mirroring#76

Open
uldisa wants to merge 6 commits into
ef-labs:masterfrom
uldisa:master
Open

Project level mirroring#76
uldisa wants to merge 6 commits into
ef-labs:masterfrom
uldisa:master

Conversation

@uldisa
Copy link
Copy Markdown

@uldisa uldisa commented Oct 30, 2019

We have large project with several thousands repositories. We have remote CI infrastructure on gitlab. To avoid hook configuration at repository level, repository remote url interpolation is introduced. This allows project level hook configuration. Repository hook configuration is inherited from project (I don't know since when it is supported in bitbucket).
Also notice ClassCastException workaround in pushExecutor after each plugin upgrade.
Please review if this makes sense for Your mainstream project.

Interpolate mirrorRepoUrl before push.
Only repository object with the name "repository" is accessible for expressions. Methods are accessed from object reflection. Method parameters and object fileds are not supported.
Example:
http://hostname/${repository.getProject().getKey()}/${repository.getName()}.git
Plugin configuration field for remote url changed to text area.
@uldisa
Copy link
Copy Markdown
Author

uldisa commented Nov 8, 2019

Added form for manual mirror triggering and deleting from remote host
mirror_form

@nickbroon
Copy link
Copy Markdown

Project level configuration of mirroring would be very useful!

@npaul3
Copy link
Copy Markdown

npaul3 commented Oct 27, 2020

This would be a very useful feature for us. Any idea when it is going to be merged to main? @adrianluisgonzalez ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants