我打算运行下面给出的python代码:
import re
import subprocess
import os
repoBaseURL = 'https://www.collabnet.xxx.com/xxxx/xxx'
svnPath = 'C:\\Program Files\\TortoiseSVN\\bin\\svn.exe'
REPO_SRC = ('trunk')
REL_NUM = ('9999')
if not REL_NUM:
raise Exception('REL_NUM should be filled in.' )
p = subprocess.Popen(['C:\\Program Files\\TortoiseSVN\\bin\\svn.exe', 'list', repoBaseURL + 'branches'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
if not out:
print err
exit(-1)
The script is working fine standalone but while running it using jenkins I am getting error:
svn:E170013:无法连接到URL处的存储库。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
svn:E215004:没有更多凭据,或者我们尝试了太多次。
身份验证失败
有什么建议吗?在
谢谢你的帮助
如果您的脚本是独立运行的,那么您必须检查您的Jenkins配置,通常Jenkins将使用Jenkins存储的凭据连接到SVN存储库,如果您没有显式地提供任何凭据。在
希望你已经在Jenkins中安装了SVN插件,打开Jenkins作业配置,在那里你要提供连接SVN的凭据,你可以从那里自行测试。如果连接成功,您可以尝试用脚本实现。在
相关问题 更多 >
编程相关推荐