Git plugin unable to authenticate global Pipeline shared library from Bitbucket

This issue is archived. You can view it, but you can't modify it. Learn more

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.

            Assignee:
            Unassigned
            Reporter:
            Jatin Panchal
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: