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

Regression? ERROR: [ssh-agent] Could not find specified credentials: {github-app}

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • ssh-agent-plugin

      I have a command in a script that goes something like this:

       

      // Pass ssh creds to Composer so it can pull from our private repos
      sshagent(credentials: [g["cfg"]["repo"]["credentialsId"]]) {
          sh 'composer install'
      }

      where `g["cfg"]["repo"]["credentialsId"]` contains a string that identifies a set of credentials saved in Jenkins Global Credentials and also used by Jenkins-Authentication-App GithubApp. It's how we access GitHub repositories.

       

      This doesn't work with version 367.vf9076cd4ee21 of the plugin, it says
      ERROR: [ssh-agent] Could not find specified credentials: github-auth

      But it does work with version 346.vda_a_c4f2c8e50.

      Thankfully with Jenkins it's easy to go back to the old version, but this will be a problem with every update. I'm not sure where to start looking, what changed?

       

            Unassigned Unassigned
            bgdnlp Bogdan Lp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: