Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Build hangs if password for svn checkout is wrong. #1464

chetangeo ·
Hi Robin,

I am using QB3.1.21. Scheduled build hangs, if the password for svn checkout is wrong. It doesn't give any error. Ideally it should fail the build. But it gives error in system log. I want the build to be failed if password for svn checkout is wrong. Please help. I think build timeout is also not working in this case.

Thank You,
Shilpa
  • replies 9
  • views 3882
  • stars 0
robinshen ADMIN ·
Hi Shilpa,

This is a limitation of the way QB interacts with Subversion server. QB calls svn executable and upon password error, the svn executable will prompt for re-entering of the password and at this point, the process will not quit unless you cancel the build request itself via the configuration dashboard page.

Regards
Robin
drdt ·
You can prevent this by specifying '--non-interactive' in the SVN command line:

C:\Sandbox> svn --username drdt --password wrong_pwd --non-interactive co http://mySVN/svn/repos/project/trunk .\project
svn: OPTIONS of 'http://mySVN/svn/repos/project/trunk': authorization failed: Could not authenticate to server: rejected Basic challenge (http://mySVN)
robinshen ADMIN ·
QuickBuild uses --non-interactive for all svn commands except the very first "svn info" as it tries to accept certificate if there is any.
chetangeo ·
I found anither solution for this. I gave quite period as few seconds for repository. Then it threw error for wrong svn password and build didn't hang.
drdt ·
Can you elaborate on this solution?
chetangeo ·
Hi Robin,

I have given Quite period as '5' seconds in repository settings. It worked for me. It gave authentication error on dashboard page and build failed.
robinshen ADMIN ·
What is the authentication error being printed? Is the svn password specified in QB correct?
chetangeo ·
SVN password specified in QB was incorrect and the error thrown was

Command return code: 1
Command error output: svn: OPTIONS of 'http://punescmsrv/trial/repo/trunk/CSProject': authorization failed: Could not authenticate to server: ignored NTLM challenge, rejected Basic challenge (http://punescmsrv)
robinshen ADMIN ·
So you will either need to fix the password manually once it changes, or to update the password automatically via RESTful API.