Skip to content

Jenkins does not run build on the "Tag Push Events" trigger from Web Hook #70

@asn80

Description

@asn80

Thank you for your interesting plugin. But we have on trouble during him use.
For the regular "Push Event" builds everything works perfectly. But when we set only "Tag push events" trigger from our Gitlab we have a message "no project references the given repo url and commit branch" in Jenkins logs

Sep 01, 2016 4:02:34 PM INFO org.jruby.javasupport.JavaMethod invokeDirectWithExceptionHandling
gitlab web hook triggered for

  • repo url: our-gitlab-project-address/ci/project.git
  • branch:
  • with payload:
    {
    "ref": "refs/tags/v0.0.31",
    "before": "0000000000000000000000000000000000000000",
    "after": "db43582d88fb7b4680cda611decc8363a9d43883",
    "user_id": 16,
    "user_name": "user.name",
    "project_id": 155,
    "repository": {
    "name": "project",
    "url": "https://our-gitlab-project-address/ci/project.git",
    "description": "Creating a distribution project based environment list",
    "homepage": "https://our-gitlab-project-address/ci/project"
    }
    }
    Sep 01, 2016 4:02:34 PM INFO org.jruby.javasupport.JavaMethod invokeDirectWithExceptionHandling
    matching projects:
  • project
    Sep 01, 2016 4:02:34 PM WARNING org.jruby.javasupport.JavaMethod invokeDirectWithExceptionHandling
    no project references the given repo url and commit branch

What's interesting, when we start project through "Test Hook" from gitlab. We have success build status.
exp.
success_build.txt

In this case we can see what "branch:" is not empty

  • branch: master

Configuration.
In GitLab setting Web Hook configuration:
URL = http://our-jenkins-server/gitlab/build_now
Trigger = "Tag push events"

In jenkins configuration:
Source Code Management / Gitlab /
Branch specifier: /refs/heads/master

Build triggers/
enabled - "Build when a change is pushed to GitLab. GitLab CI Service URL: http://our-jenkins-server/gitlab/build_now"
enabled - "Build on Push Events"
Аccept merge request on success selected "Allow all branches to trigger this job"

Jenkins ver. 1.650
And Gitlab Hook Plugin ver 1.4.2

What are we doing wrong? Can I use your plugin only to "Tag push events" trigger from gitlab?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions