jenkinsci / generic-webhook-trigger-plugin

Can receive any HTTP request, extract any values from JSON or XML and trigger a job with those values available as variables. Works with GitHub, GitLab, Bitbucket, Jira and many more.
https://plugins.jenkins.io/generic-webhook-trigger
410 stars 162 forks source link

Possible way to get the triggered job URL #322

Open kush-work opened 2 months ago

kush-work commented 2 months ago

Explain your issue

Is there a way to get the triggered jenkins job URL in the response after we use generic-webhook-trigger? As of now in the response we get jobName; resolvedVariables and url which is something like queue/item/xxx.

cdtzabra commented 2 months ago

@kush-work a workaround is to call the queue API with the queue ID: http://JENKINS_URL/queue/item/xxx/api/json the output contains JOB_ID, JOB_URL, etc ...