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

Loading library fails with commit referenced by tag but not any branch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins 2.121.3 on RedHat Linux
      Git plugin 3.9.2
      Git Client Plugin 2.7.6
      Bitbucket Branch Source Plugin 2.4.0
    • Similar Issues:

      Description

      We have a library loaded dynamically in Pipeline script with 

      library "mylib@8c8a4a95f3187b82112cc2eb8539ba470c1eebff"

      the sha1 in question is tagged on the remote, but not contained in any branch

      Jenkins fails to load the library:

      Loading library mylib@8c8a4a95f3187b82112cc2eb8539ba470c1eebff
      Attempting to resolve 8c8a4a95f3187b82112cc2eb8539ba470c1eebff from remote references...
      > git --version # timeout=10
      using GIT_SSH to set credentials Jenkins Account
      > git ls-remote -h ssh://git@our-bitbucket.com:7999/libProject/mylib.git # timeout=10
      Could not find 8c8a4a95f3187b82112cc2eb8539ba470c1eebff in remote references. Pulling heads to local for deep search...
      > git rev-parse --is-inside-work-tree # timeout=10
      Setting origin to ssh://git@our-bitbucket.com:7999/libProject/mylib.git
      > git config remote.origin.url ssh://git@our-bitbucket.com:7999/libProject/mylib.git # timeout=10
      Fetching origin...
      Fetching upstream changes from origin
      > git --version # timeout=10
      > git config --get remote.origin.url # timeout=10
      using GIT_SSH to set credentials Jenkins Account
      > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
      > git rev-parse 8c8a4a95f3187b82112cc2eb8539ba470c1eebff^{commit} # timeout=10
      > git branch -a -v --no-abbrev --contains 8c8a4a95f3187b82112cc2eb8539ba470c1eebff # timeout=10
      Could not find a branch containing commit 8c8a4a95f3187b82112cc2eb8539ba470c1eebff
      [Bitbucket] Notifying commit build result
      [Bitbucket] Build result notified
      ERROR: No version 8c8a4a95f3187b82112cc2eb8539ba470c1eebff found for library mylib

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            phoenikz Daniel Blixt
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: