• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • http-request-plugin
    • None

      Trying to track which credentials are being used in which jobs... but httpRequest and other plugins don't track usage with CrednetialsProvider.trackAll()

      Could you either use : 

      StandardCredentials credential = CredentialsProvider.findCredentialById(id, StandardCredentials.class, run, Collections.emptyList());

      or 

      CredentialsProvider.trackAll(run, cred);

          [JENKINS-69081] use trackall when getting credentials in httpRequest

          Michael Carter created issue -
          Michael Carter made changes -
          Description Original: Trying to track which credentials are being used in which jobs... but httpRequest and other plugins don't track usage with CrednetialsProvider.trackAll() New: Trying to track which credentials are being used in which jobs... but httpRequest and other plugins don't track usage with CrednetialsProvider.trackAll()

          Could you either use : 

          StandardCredentials credential = CredentialsProvider.findCredentialById(id, StandardCredentials.class, run, Collections.emptyList());

          or 

          CredentialsProvider.trackAll(run, cred);
          Michael Carter made changes -
          Attachment New: HttpRequestExecution.java [ 58562 ]

          Jozsef Kozell added a comment -

          Hi, mikeycarter,

          Is calling the CredentialsProvider.trackAll enough to fix this?

          Jozsef Kozell added a comment - Hi, mikeycarter , Is calling the CredentialsProvider.trackAll enough to fix this?

          Yes it would thanks.

          Michael Carter added a comment - Yes it would thanks.

          Jozsef Kozell added a comment -

          Jozsef Kozell added a comment - https://github.com/jenkinsci/http-request-plugin/pull/113  
          Mark Waite made changes -
          Remote Link New: This issue links to "PR 113 implementing the enhancement (Web Link)" [ 28243 ]
          Mark Waite made changes -
          Assignee Original: Janario Oliveira [ janario ] New: Jozsef Kozell [ kozell ]
          Mark Waite made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Mark Waite made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

            kozell Jozsef Kozell
            mikeycarter Michael Carter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: