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

Git plugin unable to authenticate global Pipeline shared library from Bitbucket

XMLWordPrintable

      Jenkins is integrated with Bitbucket Cloud by using Bitbucket Username and Password.

      I have configured Jenkins Multi-branch Pipeline with Shared Library. For shared library Folder level library call is configured.

      While we add default version as the "main" branch so getting error : Cannot validate default version.

      hudson.plugins.git.GitException: Command "/usr/bin/git ls-remote -h -- https://bitbucket.org/****/****.git" returned status code 128: stdout: stderr: fatal: unable to access '*https://https://**bitbucket.org/*_/*****/_***.git/': URL using bad/illegal format or missing URL

      Added Bitbucket URL is in format of https://bitbucket.org/*****/*****.git, still in above logs we can see https is called twice somehow.

      Additionally if i update Bitbucket URL as : https://username@bitbucket.org/_*/*_.git, then magically error getting vanished.

            Unassigned Unassigned
            jatin_panchal Jatin Panchal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: