Trigger garbage collector by using api http request

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: monitoring-plugin
    • None

      I can see that when I'm running theĀ garbage collector, it sends the following 'GET' request

      https://<my jenkins url>/monitoring?action=gc&token=<token>
      

      So I have tried to create a freestyle jon and to run the same http 'GET' request to the url withĀ curl but I'm getting the following error

      curl: (22) The requested URL returned error: 403 Forbidden
      

      I have tried with the same token that theĀ monitoring-plugin uses, and I have also tried with an administrator api token and I got the same error

      any idea how canĀ  I triggerĀ garbage collector with an api http request?

      Ā 

            Assignee:
            evernat
            Reporter:
            dor s
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: