Jenkins Svn自动发布脚本老是提示须要存储密码的解决方法

转载连接

https://www.cnblogs.com/sheng-247/p/9287620.htmlhtml

报错信息:

ATTENTION!  Your password for authentication realm:

   <http://192.168.2.49:81> VisualSVN Server

can only be stored to disk unencrypted!  You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible.  See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/var/lib/jenkins/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? svn: E070014: Unable to connect to a repository at URL 'http://192.168.2.49:81/svn/JgwPlatform/platform-codecenter/platform-common-code'
svn: E070014: Can't read stdin: End of file found
Build step 'Execute shell' marked build as failure

解决方法:

# svn参数: 
--no-auth-cache : do not cache authentication tokens

例如:执行命令的时候:shell

/usr/bin/svn update --username slq --password 112233 --no-auth-cache
相关文章
相关标签/搜索