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

Inferring credentials resolves wrong credential

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • pipeline-githubnotify-step-plugin 1.0.0
      jenkins 2.36

      The inference for the github credentials uses getCredentials which return checkout credentials.

      Checkout credentials can be SSH credentials, unsuitable for API calls such as commit status updates.

      When checkout credentials are SSH credentials, inference fails with: java.lang.IllegalArgumentException: The credentialsId does not seem to exist, please check it

      Instead, the plugin should probably use getScanCredentialsId to obtain its credentials.

            rarabaolaza Raul Arabaolaza
            chrono Martin Ringehahn
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: