Vitor Santos
Vitor Santos

Reputation: 33

How trigger a job parameterized with webhook

I am trying to trigger a job in Jenkins using a webhook in GitLab. But the job that I want to start is parameterized.

I made a little research looking for some plugins to make it easy like Gitlab hook plugin, but it doesn't work.

In some pages I found clues like buildWithParameters?variable=value but after testing this, the variable still blank.

Help would be appreciated

Upvotes: 0

Views: 2595

Answers (2)

Tidhar Klein Orbach
Tidhar Klein Orbach

Reputation: 2966

For me it didn't work when I used /buidWithParameters, but when I changed to /build it did. See also https://stackoverflow.com/a/38037070/947784

Upvotes: 1

Vitor Santos
Vitor Santos

Reputation: 33

After some tries, we discovered that our Gitlab environment had some issues of queueing process. Restarting the Gitlab was enough and the job started without problems.

Upvotes: 0

Related Questions