我是靠谱客的博主 俊逸哈密瓜,这篇文章主要介绍windows从gitlab拉取代码,提交到svn的bat脚本,现在分享给大家,希望可以做个参考。

 有运维需求,将gitlab代码仓库的代码检出到svn用于自动构建,本地电脑为windows环境,脚本:

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
git clone ssh://git@ip:10022/bimplatform/bimconstruction.git git clone ssh://git@ip:10022/bimplatform/largescreen.git git clone ssh://git@ip:10022/bimplatform/mobile.git git clone ssh://git@ip:10022/bimplatform/web.git rd /s /q .bimconstruction.git rd /s /q .largescreen.git rd /s /q .mobile.git rd /s /q .web.git svn co svn://ip:13690/spring --username username --password password --no-auth-cache xcopy .bimconstruction .springbimconstruction /e /y /h /r /q xcopy .largescreen .springlargescreen /e /y /h /r /q xcopy .mobile .springmobile /e /y /h /r /q xcopy .web .springweb /e /y /h /r /q cd spring svn add . --no-ignore --force svn commit -m "git to svn auto" -q cd ../ ::rd /s /q .bimconstruction ::rd /s /q .largescreen ::rd /s /q .mobile ::rd /s /q .web ::rd /s /q .spring pause

最后

以上就是俊逸哈密瓜最近收集整理的关于windows从gitlab拉取代码,提交到svn的bat脚本的全部内容,更多相关windows从gitlab拉取代码,提交到svn内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(59)

评论列表共有 0 条评论

立即
投稿
返回
顶部