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
相關文章
相關標籤/搜索