-
Use below syntax:
curl -G http://xxxxxx/~api/trigger-job --data-urlencode project=XXXX \ --data-urlencode branch=main \ --data-urlencode job=daily-update \ --data-urlencode access-token=XXXXXX --data-urlencode MAX_ITERATION=somevalue -
Previous Value Current Value Open
Closed
| Type |
Question
|
| Priority |
Normal
|
| Assignee |
Not assigned
|
| Labels |
No labels
|
Issue Votes (0)
Hi,
How can I pass the build parameter in RESTful API?
I got above error response, which is reasonable because I added build parameter "MAX_ITERATION" for my job
However, I didn't find a guide that mentioned how to put build parameter in HTTP request I checked the "Trigger Job Via Get" and "Trigger Job Via Post" in http://xxxxx/~help/api/io.onedev.server.rest.resource.TriggerJobResource but no hints found