0

SVN 1.7を使用するように構成したjenkinsサーバーがあります(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/

しかし、ジェンキンスジョブで 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.

正しいSVNを使用するようにjenkinsを構成するにはどうすればよいですか?

4

1 に答える 1

1

Seems you has 2 installations of SVN. One 1.7 and secodn - 1.6

Execute in job echo %PATH% from jenkins job to see where 1.6 version can be installed. (or use which svn, if you use Linux)

Then you can uninstall 1.6 or modify system PATH variable, so svn 1.7 will be in paths first.

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 に答える