Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Cann't trigger a build by merge request hook. #50

Open
qwertyI opened this issue Jan 26, 2018 · 2 comments
Open

Cann't trigger a build by merge request hook. #50

qwertyI opened this issue Jan 26, 2018 · 2 comments

Comments

@qwertyI
Copy link

qwertyI commented Jan 26, 2018

Hi, guys:

I had added http://jenkins_server/gitlab/build_now to Gitlab and add push events and merge request events.

When I push a new code to Gitlab, the hook will trigger my Jenkins job. But when I create a merge request in Gitlab, there had happened nothing.

I don't know what's up. There anyone has the experience?

Jenkins version: 2.7.1
Gitlab version: 10.4.0 & 7.11.4
Gitlab Hook Plugin: 1.4.2

@HadesArchitect
Copy link

Jenkins logs would be nice to see, the plugin produces some useful logs to check.

About your question:

  1. Notice that the merge request should has a target branch which matches your job branch. For example, if you make a merge request from branch feature-1234 to master branch, you need a job which works with branch master
  2. Assure that creation of merge requests jobs is enabled in jenkins config.

@LHRchina
Copy link

LHRchina commented Dec 29, 2018

I have the same problem

Jenkins version: 2.122
Gitlab version: 11.4.7-ee
Gitlab Hook Plugin: 1.4.2

the push events trigger logs are

`Dec 29, 2018 3:38:00 PM org.jruby.javasupport.JavaMethod invokeDirectWithExceptionHandling
INFO: matching projects:

  • project
    Dec 29, 2018 3:38:00 PM org.jruby.javasupport.JavaMethod invokeDirectWithExceptionHandling
    INFO: project
    `

and the create a merge request trigger logs are :

`Dec 29, 2018 3:41:42 PM org.jruby.javasupport.JavaMethod invokeDirectWithExceptionHandling
INFO: matching projects:

  • project
    Dec 29, 2018 3:41:42 PM org.jruby.javasupport.JavaMethod invokeDirectWithExceptionHandling
    INFO: project scheduled for build
    `

the INfO line is empty

My jenkins config is:
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants