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

Multi-Branch-Job with Subversion repo which contains externals fails on checkout

    Details

    • Similar Issues:

      Description

      When the multi-branch-job is configured with secured (credentials) svn repository which has external links, the checkout fails sometimes with an NullpointerException (It seems only the initial CO) or with an authentication cancelled error.

      Fetching '<some-external-link>' at -1 into '<jenkins-workspace>'
      java.lang.NullPointerException
      	at java.util.ArrayList.addAll(ArrayList.java:559)
      	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:894)
      	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:830)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109)
      	at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
      	at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:85)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:206)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      
      Fetching '<some-external-link>' at -1 into '<jenkins-workspace>'
      org.tmatesoft.svn.core.SVNCancelException: svn: E200015: authentication cancelled
      

      Maybe its related to JENKINS-21785 but in a multi-branch-job I can not add additional credentials in the job config.

        Attachments

          Issue Links

            Activity

            Hide
            nwegner Niels Wegner added a comment -

            This issue seems to be more related to the multibranch plugin, added that as component

            Show
            nwegner Niels Wegner added a comment - This issue seems to be more related to the multibranch plugin, added that as component
            Hide
            rvangoethem Remi Van Goethem added a comment - - edited

            Is there a reason why the pipeline multibranch plugin does not allow to add Additional Credential as part of the job definition?

            Normal pipeline plugin does allow to define Additional Credential.

            I do not mean in the Jenkinsfile but as job definition (before any Jenkinsfile code being executed)

            We are failing 50% of our build as a result. Would it be possible to add the same feature on the multibranch pipeline?

            Show
            rvangoethem Remi Van Goethem added a comment - - edited Is there a reason why the pipeline multibranch plugin does not allow to add Additional Credential as part of the job definition? Normal pipeline plugin does allow to define Additional Credential. I do not mean in the Jenkinsfile but as job definition (before any Jenkinsfile code being executed) We are failing 50% of our build as a result. Would it be possible to add the same feature on the multibranch pipeline?

              People

              • Assignee:
                Unassigned
                Reporter:
                larsmeynberg Lars Meynberg
              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: