Credentials Binding does not guarantee folder credential with a given ID will be returned over global credential with same ID

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      So starting with credentials 1.28 and https://github.com/jenkinsci/credentials-plugin/commit/68dc8c9607ec66f474824ec0489a38c205bfdd18, the list of credentials returned by CredentialsProvider.lookupCredentials is now sorted alphabetically. That means that if you've got multiple providers supplying different credentials for the same ID, CredentialsProvider.findCredentialsById will return the first of those in alphabetical order. The result of this is that you don't necessarily get, say, the folder credential instead of the global credential, if the names are different. This...seems wrong to me.

            Assignee:
            Stephen Connolly
            Reporter:
            Andrew Bayer
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: