I am trying to run the below CURL command to trigger a JENKINS job with huge list of parameters. Job gets submitted , but it does not read my parameters that i sent , instead picks up the defaults.
curl -v -X POST \
'https://jenkins_URL/buildWithParameters?' \
-H 'Content-Type: application/json' \
--user ABC:token \
--form json='{\"parameter\":[{\"name\":\"ACTION\", \"value\":\"ONBOARD_NEWUSECASE"\ } \
,{\"name\":\"Name\", \"value\":\"ABC\"} \
,{\"name\":\"Number\", \"value\":\"123456789\"} \
,{\"name\":\"sample\", \"value\":\"SAMPLE\"} \
,{\"name\":\"A1\", \"value\":\"V1\"} \
,{\"name\":\"A2\", \"value\":\"V2\"} \
,{\"name\":\"A3\", \"value\":\"V3\"} \
]}'
file://policy.json
can someone please help me to fix this ?