Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53201

Poll SCM not triggering on any externals: svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • pipeline, subversion-plugin
    • None
    • Windows Server
      Jenkins 2.137
      Subversion 2.11.1
      Pipeline 2.5
      Pipeline API 2.29
      ... (generally latest Pipeline to nearly latest other plugins)

      None of the Multibranch Pipeline jobs seem to be able to cope with externals using Poll SCM.

      Jobs are configured somewhat like this:

      properties(
          [buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '2000', numToKeepStr: '400')), 
          [$class: 'ScannerJobProperty', doNotScan: false],
          pipelineTriggers([pollSCM('H H(0-5) * * *')])
          ])
      ...
      checkout  changelog: false, scm: [$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: scm.locations as java.util.List<hudson.scm.SubversionSCM$ModuleLocation>, quietOperation: true, workspaceUpdater: [$class: 'UpdateWithCleanUpdater']]
      ...
      

      Multibranch job is configured to not trigger when scanning. SCM trigger on main repo change works, bot trigger on an external with this repo does not. I'm not sure if it ever worked, but it's broken and totally not obvious unless you go into Subversion Polling Log. Not only should this error not happen, but Poll SCM should be able to indicate errors without having to scrub through all logs. The main repo and all external repos are on the same server, I can't see any problems with credential configuration either.

      This is a major problem as builds no longer get updated correctly without any feedback.

      I added three components to the ticket as it's not obvious to me what causes it.

      If builds are triggered manually, they build fine. Whenever SCM triggers a build it builds also fine. Similar bug was fixed this year when a build was failing with same error during checkout, so I guess same fix should be applied to the Poll SCM.

      There are similar issues like JENKINS-31869 and JENKINS-29079 but they are from a different version, years older.

      Polling log looks like this (multiply this a thousand times for large repos):

      Started on Aug 23, 2018 1:34:29 AM
      Received SCM poll call on master for trunk on Aug 23, 2018 1:34:29 AM
      Using sole credentials <none> in realm ‘<https://repo:443> VisualSVN Server’
      ERROR: Failed to check repository revision for https://repo/trunk
      org.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
      

       

            Unassigned Unassigned
            gl1koz3 Edgars Batna
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: