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

Shared Library using folder-scoped credential fails to authenticate

      In my GitHub Org job (using GitHub Enterprise), I added a pipeline lib source that is in GitHub.  If the scan credential is scoped to the job (created in the job, vs created in the global credential store), there are two problems:

      1) The config page under branch shows an error instead of "Currently maps to revision: $SHA".

      2) If using a job-scoped credential, the "git fetch" in the job execution does not contain a line saying "Setting GIT_ASKPASS ..."

      If I switch to the identical credential stored in the global scope, both the config page and the git fetch (GIT_ASKPASS) works.

      I can give more details or try to isolate the problem if needed (standalone, minimal sets of plugins).

          [JENKINS-43802] Shared Library using folder-scoped credential fails to authenticate

          Justin Vallon created issue -
          Sonny Garcia made changes -
          James Nord made changes -
          Labels New: cloudbees-internal-steel
          James Nord made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Michael Neale made changes -
          Labels Original: cloudbees-internal-steel New: cloudbees-internal-steel pipeline-improvement shared-libraries
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal CD-645 (Web Link)" [ 21141 ]
          Vivek Pandey made changes -
          Labels Original: cloudbees-internal-steel pipeline-improvement shared-libraries New: cloudbees-internal-steel pipeline-improvement shared-libraries triaged-2018-11
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Attachment New: JENKINS-43802.diff [ 46874 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "workflow-cps-global-lib #68 (Web Link)" [ 22718 ]

            Unassigned Unassigned
            vallon Justin Vallon
            Votes:
            24 Vote for this issue
            Watchers:
            30 Start watching this issue

              Created:
              Updated:
              Resolved: