- Support batch migration from CODING, GitHub, GitLab, Gitee, Codeup(Alibaba Cloud), CNB, Tencent Git, Gitea, Huawei Cloud(CodeArts Repo), and other third-party code hosting platforms to CNB
- Automatically create CNB sub-organizations and repositories (migrated repository path will be
<CNB root org>/<source repo path>) - CODING source repositories will map project display names to CNB sub-organization aliases, and project descriptions to sub-organization descriptions
- Automatically skip successfully migrated repositories (
⚠️ depends onsuccessful.logfile in working directory)
- SVN repositories are not supported, please convert to git repositories first
- After migration is complete, ensure code commits are only made on one platform, otherwise re-migration may cause conflicts
- CNB sub-organizations are visible to external members by default. To modify this, enable Root Organization - Organization Settings - Organization Control - Hide Sub-organizations
-
Create access token for source platform
-
Create root organization in CNB
-
Create CNB access token
- Use with Cloud Native Build 🔥Recommended
- Use with Docker Docker usage supports more advanced customizations
- Exceeds single file size limit of 256 MiB
Enable
PLUGIN_MIGRATE_USE_LFS_MIGRATEparameter, see More parameters - Failed to get repository list/project info:
The current scope does not support access to this APICheck if PLUGIN_SOURCE_TOKEN has required permissions. For CODING platform, ensure token belongs to team owner or admin, see CODING Token requirements - Failed to download LFS files
LFS: Repository or object not found
EnablePLUGIN_MIGRATE_ALLOW_INCOMPLETE_PUSH, see More parameters - Push failed:
git pull before pushing again
EnablePLUGIN_MIGRATE_FORCE_PUSHbased on actual situation, see More parameters - How to migrate only specific repositories?
SetPLUGIN_MIGRATE_ALLOW_SELECT_REPOS=true, after first run editrepo-path.txtto keep only the repositories you want to migrate.