0

我有一个 jenkins 服务器,我将其配置为使用 SVN 1.7(管理 Jenkins->配置系统->Subversion->1.7)。我有一个安装了 tortoiseSVN 的从机,并将它添加到从机中的 PATH 变量中。当我在奴隶中运行 svn --version 我看到

 svn, version 1.7.18 (r1615261)
   compiled Aug  9 2014, 13:23:04

Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people; see the NOTICE
file for more information.
Subversion is open source software, see http://subversion.apache.org/

但是当我在 jenkins 工作中运行 svn --version 时,我得到了

  vn, version 1.6.12 (r955767)
   compiled Jun 21 2010, 16:00:59

Copyright (C) 2000-2009 CollabNet.

版本的差异导致此错误:

svn: The path '.' appears to be part of a Subversion 1.7 or greater working copy.  Please upgrade your Subversion client to use this
working copy.

如何配置 jenkins 以使用正确的 SVN?

4

1 回答 1

1

似乎您安装了 2 个 SVN。一个 1.7 和第二个 - 1.6

在 jenkins job 的 job echo %PATH% 中执行,看看 1.6 版本可以安装在哪里。(或者使用 which svn,如果你使用 Linux)

然后您可以卸载 1.6 或修改系统 PATH 变量,因此 svn 1.7 将首先在路径中。

Selection SVN version in Jenkins (Manage Jenkins->Configure System->Subversion) do not affect 'Command' build step. It affect 'Source Code Management', 'Triggers'

于 2015-06-04T09:31:56.260 回答