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

Personal repository configuration is not working

XMLWordPrintable

      Summary :

      Personal repository configuration uses wrong settings after saving.

      The user's ID is replaced by it's full name in configuration

      Usecase :

      1. Create a new "multibranch pipeline" job => OK
      2. Add a new Branch Sources with Bitbucket Server (atlassian-bitbucket-server-integration plugin) => OK
      3. Set Credentuals and Bitbucket Server instance => OK
      4. Set "Project name" like specified for personal repository syntax  => OK
      5. Set "Repository name" => OK
      6. Test connection => OK
      7. Save job configuration  => ERROR
      8. Back in configuration page => WRONG SETTINGS

      Example of personnal Bitbucket repo :

      https://bitbucket.xxxxxx.com/users/sirgu/repos/componentexample/browse

       

      Multibranch pipeline project configuration :

      After configuration saving :

      Scan Multibranch Pipeline Log

       

      StartedStarted[Wed Jun 24 10:12:21 UTC 2020] Starting branch indexing...ERROR: [Wed Jun 24 10:12:21 UTC 2020] Could not fetch branches from source ca683084-e9be-4515-b6fd-ba04a128d297java.lang.NullPointerException at hudson.Util.getDigestOf(Util.java:634) at jenkins.plugins.git.AbstractGitSCMSource.getCacheEntry(AbstractGitSCMSource.java:1383) at jenkins.plugins.git.AbstractGitSCMSource.getCacheEntry(AbstractGitSCMSource.java:1218) at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:339) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:566) at com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource$CustomGitSCMSource.accessibleRetrieve(BitbucketSCMSource.java:447) at com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:189) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:643) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1034) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428)[Wed Jun 24 10:12:21 UTC 2020] Finished branch indexing. Indexing took 1 msFATAL: Failed to recompute children of Docker_declarative_pipelinejava.lang.NullPointerException at hudson.Util.getDigestOf(Util.java:634) at jenkins.plugins.git.AbstractGitSCMSource.getCacheEntry(AbstractGitSCMSource.java:1383) at jenkins.plugins.git.AbstractGitSCMSource.getCacheEntry(AbstractGitSCMSource.java:1218) at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:339) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:566) at com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource$CustomGitSCMSource.accessibleRetrieve(BitbucketSCMSource.java:447) at com.atlassian.bitbucket.jenkins.internal.scm.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:189) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283) at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:643) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1034) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428)Finished: FAILURE
      

       

      Back in configuration page :

      Project name changed from "~sirgu" to "LAST NAME Remy" (full name)

       

       

            Unassigned Unassigned
            tatayoyoh Rémy Bob
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: