Getting "400 This page expects a form submission" when making a rest call to trigger a Jenkins Job
I had this problem too. Finally, I found that if your job has parameters and you call /build
, this causes 400
bad request error. You must call /buildWithParameters
even if all the parameters have default values.