Introduce parallelised BitBucket Server Importer
What does this MR do and why?
Introduce parallelised BitBucket Server Importer
Update BitBucket Server to import projects using multiple workers similar to GitHub Importer
Screenshots or screen recordings
https://drive.google.com/file/d/1Mq2L9ybTNoIe8LWyB1iOrczSJ36yU3kA/view?usp=share_link
How to set up and validate locally
-
Set up a local Bitbucket Server instance docs.
-
Create a repo, and a PR with comments in Bitbucket
-
Temporarily patch
UrlBlocker
to allow all localhost requests:diff --git a/lib/gitlab/url_blocker.rb b/lib/gitlab/url_blocker.rb index e7aab4fae79a..75502d937b63 100644 --- a/lib/gitlab/url_blocker.rb +++ b/lib/gitlab/url_blocker.rb @@ -37,6 +37,9 @@ def validate!( dns_rebind_protection: true) # rubocop:enable Metrics/ParameterLists + allow_localhost = true + allow_local_network = true + return [nil, nil] if url.nil? raise ArgumentError, 'The schemes is a required argument' if schemes.blank?
Or enable local requests in http://gdk.test:3000/admin/application_settings/network by adding
-
Import a new project
/projects/new#import_project
-
Choose Bitbucket Server
-
Enter your server details, and click List your Bitbucket Server repositories
-
Next to one of your BitBucket repositories, click Import
-
You can
tail -f log/importer.log
to watch the import progress -
The import should finish and you should have a new project imported with a repo, MR, and comments on the MR
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #411534 (closed)