My Jenkins build uses Subversion for Source Code Management. In the appropriate fields in the GUI I've set up the repository url https://host:port/svn/project/trunk and added the credentials.
The build then has a number of steps, each being an invoke of an ant target on a build.xml which came with the SVN checkout.
The checkout itself works fine, I can verify this by seeing the expected files in the workspace. So the credentials work and Jenkins can connect to the SVN server.
THEN this happens when one of the build steps wants to delete and create an SVN tag (to which files will be copied in a next step - the tag is used by a packaging system later on):
16:54:17 04.svn-tagging:
16:54:17 [echo] svn delete tag https://host:port/svn/project/tags/tagname
16:54:17 [exec] svn: E175013: Unable to connect to a repository at URL 'https://host:port/svn/project/tags/tagname'
16:54:17 [exec] svn: E175013: Access to 'https://host:port/svn/project/tags/tagname' forbidden
16:54:18 [exec] Result: 1
16:54:18 [echo] svn create tag https://host:port/svn/project/tags/tagname
16:54:18 [exec] svn: E175013: Unable to connect to a repository at URL 'https://host:port/svn/project/tags'
16:54:18 [exec] svn: E175013: Access to 'https://host:port/svn/project/tags' forbidden
16:54:19
As the server was already able to connect to https://host:port/svn/project/trunk, why would it not be able to connect to https://host:port/svn/project/tags? In the Additional Credentials (under Subversion) I've tried adding credentials for https://host:port/svn/project/tags and https://host:port/svn/project but that doesn't change anything.
Possibly the literal svn commands are being executed with whatever user Jenkins is running as? How can I tell Jenkins to use specific credentials for this task (and how can I configure those credentials in Jenkins)?