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

Shared Library using folder-scoped credential fails to authenticate

    XMLWordPrintable

Details

    Description

      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).

      Attachments

        Issue Links

          Activity

            vallon Justin Vallon created issue -
            sonnygarcia Sonny Garcia made changes -
            Field Original Value New Value
            Attachment dots-team Config [Jenkins] 2017-08-16 12-54-50.jpg [ 39304 ]
            teilo James Nord made changes -
            Labels cloudbees-internal-steel
            teilo James Nord made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            michaelneale Michael Neale made changes -
            Labels cloudbees-internal-steel cloudbees-internal-steel pipeline-improvement shared-libraries
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal CD-645 (Web Link)" [ 21141 ]
            vivek Vivek Pandey made changes -
            Labels cloudbees-internal-steel pipeline-improvement shared-libraries cloudbees-internal-steel pipeline-improvement shared-libraries triaged-2018-11
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Assignee Jesse Glick [ jglick ]
            jglick Jesse Glick made changes -
            Attachment JENKINS-43802.diff [ 46874 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-cps-global-lib #68 (Web Link)" [ 22718 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "scm-api #65 (Web Link)" [ 22719 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "github-branch-source #221 (Web Link)" [ 22720 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "mercurial #127 (Web Link)" [ 22721 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "git #708 (Web Link)" [ 22722 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "subversion #232 (Web Link)" [ 22723 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            dnusbaum Devin Nusbaum made changes -
            Released As workflow-cps-global-lib 2.14
            jglick Jesse Glick made changes -
            Released As workflow-cps-global-lib 2.14 workflow-cps-global-lib 2.14 https://github.com/jenkinsci/mercurial-plugin/releases/tag/mercurial-2.7
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Fixed but Unreleased [ 10203 ]
            markewaite Mark Waite made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Fixed but Unreleased [ 10203 ]
            markewaite Mark Waite made changes -
            Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]
            degelma Marian Degel made changes -
            Assignee Jesse Glick [ jglick ]
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            degelma Marian Degel made changes -
            Link This issue relates to JENKINS-64803 [ JENKINS-64803 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: