简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM