jenkinsci / jenkinsci/subversion-plugin
[JENKINS-52977] Failed to check repository revision
- Dominant language
- Java
- Stars
- 131
- Forks
- 275
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 6
Description
Subversion checks out fine, also the externals. So credentials should be fine.
But when I look in the Subversion Polling Log, it has problems checking the repository version on the Externals.
It looks like this:
Subversion Polling LogSubversion Polling LogStarted on 10-08-2018 09:18:00Received SCM poll call on master for BS_Prod_A on 10-08-2018 09:18:00Using sole credentials in realm ‘//svn.skov.com:80> Subversion repository’ERROR: Failed to check repository revision for http://svn.skov.com/svn/Control/DevTools/IOMan/tags/IOMan-3.2.1.1/IOMan/IOMan/bin/x86/Releaseorg.tmatesoft.svn.core.SVNCancelException: svn: E200015: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:66) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:760) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:910) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:702) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:113) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1035) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:164) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:119) at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:178) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:43) at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteGetInfo.run(SvnRemoteGetInfo.java:47) at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteGetInfo.run(SvnRemoteGetInfo.java:31) at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21) at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239) at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294) at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2535) at hudson.scm.SubversionSCM.parseSvnInfo(SubversionSCM.java:1279) at hudson.scm.CompareAgainstBaselineCallable.call(CompareAgainstBaselineCallable.java:79) at hudson.scm.CompareAgainstBaselineCallable.call(CompareAgainstBaselineCallable.java:27) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1476) at org.jenkinsci.plugins.workflow.job.WorkflowJob.poll(WorkflowJob.java:631) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:603) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:649) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)Caused by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled. at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:694) ... 30 more
I wonder why it writes: "Using sole credentials in realm"
My Pipeline script looks like this:
// Check for changes in SVN each 2 minutes
triggers {
pollSCM('H/2 * * * *')
}// Setup of SVN
stages {
stage('SVN-update-setup') {
when {
environment name: 'SVN_UPDATE_SETUP', value: 'true'
}
steps {
bat 'echo SVN cleanup of R: to help Rhapsody build correct'
bat 'svn cleanup R:\\ --quiet --remove-unversioned --remove-ignored --non-interactive'
checkout([$class: 'SubversionSCM',
additionalCredentials: [
[credentialsId: '2d520afc-8a1d-4b44-994e-19e4d4b2b7xx', realm: '//svn.skov.com:80> Subversion repository'],
[credentialsId: '2d520afc-8a1d-4b44-994e-19e4d4b2b7xx', realm: '//svn.skov.com:3690> SKOV A/S ARM-ControlSW Repository']],
excludedCommitMessages: '',
excludedRegions: '',
excludedRevprop: '',
excludedUsers: '',
filterChangelog: false,
ignoreDirPropChanges: false,
includedRegions: '',
locations: [[cancelProcessOnExternalsFail: true,
credentialsId: '2d520afc-8a1d-4b44-994e-19e4d4b2b7xx',
depthOption: 'infinity',
ignoreExternalsOption: false,
local: '.',
remote: env.SVN_URL]],
quietOperation: true,
workspaceUpdater: [$class: 'UpdateUpdater']])
}
}
Am I doing something wrong???
---
Originally reported by bbnatskov, imported from: Failed to check repository revision
Raw content of original issue
Subversion checks out fine, also the externals. So credentials should be fine.
But when I look in the Subversion Polling Log, it has problems checking the repository version on the Externals.It looks like this:
Subversion Polling LogSubversion Polling LogStarted on 10-08-2018 09:18:00Received SCM poll call on master for BS_Prod_A on 10-08-2018 09:18:00Using sole credentials <none> in realm ‘<http://svn.skov.com:80> Subversion repository’ERROR: Failed to check repository revision for http://svn.skov.com/svn/Control/DevTools/IOMan/tags/IOMan-3.2.1.1/IOMan/IOMan/bin/x86/Releaseorg.tmatesoft.svn.core.SVNCancelException: svn: E200015: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled. at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:66) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:760) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:352) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:340) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:910) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:702) at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:113) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1035) at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:164) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:119) at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:178) at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:43) at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteGetInfo.run(SvnRemoteGetInfo.java:47) at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteGetInfo.run(SvnRemoteGetInfo.java:31) at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21) at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239) at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294) at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2535) at hudson.scm.SubversionSCM.parseSvnInfo(SubversionSCM.java:1279) at hudson.scm.CompareAgainstBaselineCallable.call(CompareAgainstBaselineCallable.java:79) at hudson.scm.CompareAgainstBaselineCallable.call(CompareAgainstBaselineCallable.java:27) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1476) at org.jenkinsci.plugins.workflow.job.WorkflowJob.poll(WorkflowJob.java:631) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:603) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:649) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)Caused by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled. at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:694) ... 30 moreI wonder why it writes: "Using sole credentials <none> in realm"
My Pipeline script looks like this:
// Check for changes in SVN each 2 minutes
triggers {
pollSCM('H/2 * * * *')
}// Setup of SVN
stages {
stage('SVN-update-setup') {
when {
environment name: 'SVN_UPDATE_SETUP', value: 'true'
}
steps {
bat 'echo SVN cleanup of R: to help Rhapsody build correct'
bat 'svn cleanup R:\\ --quiet --remove-unversioned --remove-ignored --non-interactive'
checkout([$class: 'SubversionSCM',
additionalCredentials: [
[credentialsId: '2d520afc-8a1d-4b44-994e-19e4d4b2b7xx', realm: '<http://svn.skov.com:80> Subversion repository'],
[credentialsId: '2d520afc-8a1d-4b44-994e-19e4d4b2b7xx', realm: '<svn://svn.skov.com:3690> SKOV A/S ARM-ControlSW Repository']],
excludedCommitMessages: '',
excludedRegions: '',
excludedRevprop: '',
excludedUsers: '',
filterChangelog: false,
ignoreDirPropChanges: false,
includedRegions: '',
locations: [[cancelProcessOnExternalsFail: true,
credentialsId: '2d520afc-8a1d-4b44-994e-19e4d4b2b7xx',
depthOption: 'infinity',
ignoreExternalsOption: false,
local: '.',
remote: env.SVN_URL]],
quietOperation: true,
workspaceUpdater: [$class: 'UpdateUpdater']])
}
}Am I doing something wrong???
environment
```
Window server 2012 R2, Subversion, Pipeline
Jenkins ver. 2.136
Subversion plugin 2.11.1
```
Contributor guide
Assessment
This issue has not been assessed yet.