---
title: "【Jenkins】git && svn 插件"
author: "Perrin Yong"
author_profile: https://www.pystone.net/profile/
published_by: "Perrin Yong"
canonical: https://www.pystone.net/notes/jenkins-git-svn-plugin/
type: note
content_role: unspecified
visibility: public
id_stability: rename-stable
source_path: "10-计算机、信息技术与工程/03-软件工程与质量保障/CI-CD与质量保障/CI-CD工具链/【Jenkins】git && svn 插件.md"
content_hash: bfb143513d0a63162cc1bf7beda50153a311a3d29aa0fa82e9cec9ef90695664
knowledge_version: 224c990773de.5fa8af6e39fa
site_commit: 224c990773de166d23a886306577dd90379529ce
notes_commit: 5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a
---
# 【Jenkins】git && svn 插件

﻿# 【Jenkins】git && svn 插件

> 创建时间：2021/11/8 12:51

Jenkins里面有svn和git的插件，可以自动将最新的代码拉到本地，执行构建。

Q：为什么有时候WorkingCopy会被清除：

  * 对于在版本管理中的文件，如果有变化，revert掉

  * 将仓库中所选分支的最新版本拉取到本地

  * 对于本地不在版本管理中的文件，不会进行干涉。但是，在某些情况下（比如本地的working copy被锁住），本地整个仓库的working copy 目录都会被删掉，重新拉取，这会导致不在版本管理中的文件也丢失。
