`svn: E170001: Authentication required` occurs when credentials are not specified on a valid SVN checkout directory
I'm trying to set up versioning on a project using SVN. The project directory can be updated with svn update. If the SVN auth cache is empty, svn CLI prompts to accept invalid HTTPS certs, then prompts for credentials and caches them. After that, no prompts occur for svn update.
So, versioning should work without specifying credentials, per the docs, right?
If credentials are not provided, the versioning plug-in will rely on the default Subversion configuration for the current user.
The actual result is the svn: E170001: Authentication required error.
Hi,
I'm not sure to understand the scenario here. If the credentials are not provided, the versioning plugin won't be able to ask them from the user, not like when using the command line.
Can you detail a bit more the scenario of your issue, that'd help me a lot, thanks !
OK, here is the test case:
- The project is in SVN, and can be updated. The credentials are cached by SVN.
- Add
versioning:
plugins {
id 'net.nemerosa.versioning' version '2.8.+'
}
versioning {
scm = 'svn'
}
- Print the revision info:
tasks.register('vars') {
doLast {
println '\n## SCM revision ##\n'
println versioning.info.full
}
}
- Run:
./gradlew vars
Expected: Display the revision info (per the docs, it should work when credentials are not provided).
Actual: svn: E170001: Authentication required