ericferon / glpi-webhook

GNU General Public License v2.0
20 stars 5 forks source link

Passing Parameters in url request #16

Closed cchazalet closed 1 year ago

cchazalet commented 1 year ago

Is it possible to specify parameters in the query to execute the following command ?

curl -X POST JENKINS_URL/job/JOB_NAME/build \
  --user USER:TOKEN \
  --data-urlencode json='{"parameter": [{"name":"id", "value":"123"}, {"name":"verbosity", "value":"high"}]}'

In fact I want to build a jenkins job by passing glpi variables as parameters

Thank you in advance for your help,

Have a nice day

ericferon commented 1 year ago

Hi, Currently, glpi variables mentioned in the url as parameters would not be replaced by their current values. This would be an enhancement that I can add in a next version. K.r,

ericferon commented 1 year ago

Implemented in v1.0.12. K.r