jenkins-gitlab-merge-request-builder-plugin icon indicating copy to clipboard operation
jenkins-gitlab-merge-request-builder-plugin copied to clipboard

Why are merge requests triggered by Jenkins Cron?

Open z00dev opened this issue 8 years ago • 8 comments

In gitlab there is a webhook to start the merge request builder in Jenkins, but in the configuration there is a cron configuration, Jobs are triggered by the Cron it seems, how would i configure it so the webhook starts the job instantly?

Plugin Version: 2.0.0 Jenkins Version: 1.642.2 Gitlab CE Version: 8.5.4

z00dev avatar Mar 30 '16 08:03 z00dev

same question here!

marrrschine avatar Apr 07 '16 07:04 marrrschine

+1 !

hoopesj avatar May 25 '16 20:05 hoopesj

I believe that the webhook WILL start the job instantly. The cron settings just give you another way of triggering the same job.

jwg4 avatar Jun 01 '16 07:06 jwg4

why did you close the issue? what is the solution? the build jobs will not be triggered unless you configure a cron job.

marrrschine avatar Jun 07 '16 18:06 marrrschine

@marrrschine I assumed that @jwg4's answer was sufficient:

I believe that the webhook WILL start the job instantly. The cron settings just give you another way of triggering the same job.

timols avatar Jun 07 '16 19:06 timols

but it's not. automatic trigger does not work.

marrrschine avatar Jun 07 '16 19:06 marrrschine

@marrrschine would you be interested in submitting a PR to resolve this issue?

timols avatar Jun 07 '16 19:06 timols

Correct me if I'm wrong, I think that @marrschine's issue is a little different from the original issue. They are saying that if you don't have cron triggers configured, webhooks don't work at all. But if you do have cron triggers, the job can be successfully triggered by a webhook (without waiting for the next poll). I think this might be the case based on my experience.

jwg4 avatar Jun 08 '16 13:06 jwg4