0

I'm using token authentification to start jobs (because authentification would otherwise be complicated, due to our cloud security):

curl -X POST <<jenkind URL>>/job/ACC_INT-on-demand/build?token=012345678901234567890123456789012345678901234567890

But for stopping jobs, the token seems to be ignored:

curl -X POST <<jenkind URL>>/job/ACC_INT-on-demand/299/stop?token=012345678901234567890123456789012345678901234567890

I get error 403 (Authentication required).

Peter
  • 533
  • 1
  • 6
  • 17
  • 1
    Instead of a build number (i.e. 299 in example above), can you try with lastBuild and see if you still get a HTTP 403 – djmonki Feb 17 '23 at 17:41

0 Answers0