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

Give error message when credential has the wrong type

    Details

    • Similar Issues:

      Description

      In this line:

       

        https://github.com/jenkinsci/pipeline-githubnotify-step-plugin/blob/d88d474e93d96a264b82baa984be2a1096e92016/src/main/java/org/jenkinsci/plugins/pipeline/githubstatusnotification/GitHubStatusNotificationStep.java#L223

       

      CREDENTIALS_ID_NOT_EXISTS is returned, even when the credentials do exist but are not of the right type (UsernamePasswordCredentials.class). It would be great if the plugin could give an explicit error when the credentials do exist but are of the wrong type (this cost me a couple hours debugging, having accidentally used a "Password" credential).

       

      Thanks!

        Attachments

          Activity

          Hide
          rarabaolaza Raul Arabaolaza added a comment -

          Makes a lot of sense, thanks for the suggestion, and sorry for the late reply

          Show
          rarabaolaza Raul Arabaolaza added a comment - Makes a lot of sense, thanks for the suggestion, and sorry for the late reply

            People

            • Assignee:
              rarabaolaza Raul Arabaolaza
              Reporter:
              nh2 Niklas Hambuechen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: