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

Credentials not available after upgrade to LTS 2.176.2


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Environment:
    • Similar Issues:


      In a Multibranch pipeline we're using the withCredentials syntax in several places:

      withCredentials([usernamePassword(credentialsId: 'name-of-credentials', passwordVariable: 'PASSWORD', usernameVariable: 'USER')]) {
       // some block


      This has worked fine for several weeks but since the upgrade we get:

      [Pipeline] withCredentials
      [Pipeline] // withCredentials
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] echo
      *15:07:06*  failed
      [Pipeline] }
      [Pipeline] // timestamps
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      [BFA] Scanning build for known causes...
      [BFA] No failure causes found
      [BFA] Done. 0s
      ERROR: Could not find credentials entry with ID 'name-of-credentials'
      Finished: FAILURE

      The pipeline has not changed, the credentials have not been updated.

      I have found that the snippet generator displays an empty drop down list when I start it from within the "trunk" directory of the Multibranch pipeline.

      At one point I added a new credential and limited it to the folder of the Multibranch pipeline.
      When I start the snippet generator in that directory the new credential as well as the old credentials are both visible.
      When I start the snippet generator at the top level only the old credential is visible (as expected).

      The problem is that within the branches (currently only trunk) of the multibranch pipeline the credentials are not visible.




            • Assignee:
              bram_mertens Bram Mertens
            • Votes:
              1 Vote for this issue
              5 Start watching this issue


              • Created: