Jenkins SVN

$pwd

/root/.jenkins/jobs/projectName_wasce/workspace

$ls -a

.                         build-parser.xml  .project

..                        build.xml         solr-projectName

build                     .classpath        src

build-collector.xml       conf              .svn

build-common.xml          example           table_create_script.txt

build-flume.xml           lib               test

build-hclient-jar.xml     myflume           tomcat-projectName

build-hclient.properties  myhadoop          usr

build-hclient.xml         mytomcat

build-hserver.xml         mywasce

$svn info

Path: .

URL: https://svn_serve:9050/svn/153299/elf/Trunk/projectName

Repository Root: https://svn_serve:9050/svn/153299/elf

Repository UUID: 36218a5d-ec63-0410-8c6c-9bab853e7b5a

Revision: 1492

Node Kind: directory

Schedule: normal

Last Changed Author: userID

Last Changed Rev: 1492

Last Changed Date: 2012-10-19 05:51:13 -0400 (Fri, 19 Oct 2012)

$svn info -R | grep "Revision\:" | sort -k2nr | head -n1

svn: Directory 'build/.svn' containing working copy admin area is missing

Revision: 1510

$


Question:
There is a credential authorization of SVN Jenkins setting.
The first time you enter your credential, it works.
But next time, it does not fetch the latest revision of svn.
We should do below things.
there is a svn config file in the folder $SVN_HOME/.subversioin/config
set below items.

store-passwords = no
store-auth-creds = no

猜你喜欢

转载自ilnba.iteye.com/blog/1705429