Skip to content

Hook execution failed: execution expired #627

Closed
@paintingStyle

Description

@paintingStyle

Issue

1,如果我使用构建触发器插件选项中Build when a change is pushed to GitLab. GitLab CI Service URL提供的URL,http://192.168.91.18:8080/project/tyfocgApp ,使用GitLab的WebHook报错Hook execution failed: execution expired
2,使用http://192.168.91.18:8080/buildByToken/build?job=tyfocgApp&token=6b1cb76736418840a74687ef 会出现一样的错误Hook execution failed: execution expired
使用 http://localhost:8080/buildByToken/build?job=tyfocgApp&token=6b1cb76736418840a74687ef,将IP地址换成localhost后,gitLab报错Hook executed successfully but returned HTTP 404

该如何解决?谢谢

Context

  • Gitlab plugin version: 1.4.8
  • Gitlab version: 官方最新版本
  • Jenkins version: 2.7.7

Activity

paintingStyle

paintingStyle commented on Sep 14, 2017

@paintingStyle
Author

#####1, if I use the Build triggers the plug-in Build the when a change is pushed to GitLab GitLab CI Service URL options provide a URL, http://192.168.91.18:8080/project/tyfocgApp

By GitLab, the WebHook function is called: Hook execution failed: execution expired

#####2, use http://192.168.91.18:8080/buildByToken/build? Job =tyfocgApp&token=6b1cb76736418840a74687ef will have the same error message as above: Hook execution failed: execution expired

#####3, use http://localhost:8080/buildByToken/build? Job =tyfocgApp&token= 6b1cb76736418840a74687ef, replace the IP address with localhost
GitLab's WebHook feature:
Hook, successfully, but returned HTTP 404

How to solve it? thank you

omehegan

omehegan commented on Sep 14, 2017

@omehegan
Member

You have a network connection issue between GitLab and your Jenkins server.

Do not use 'buildByToken.' That bypasses this plugin completely.

JokerDevops

JokerDevops commented on Mar 23, 2020

@JokerDevops

I met the same problem. How did you solve it?

JokerDevops

JokerDevops commented on Mar 23, 2020

@JokerDevops
added a commit that references this issue on May 20, 2022

Merge pull request jenkinsci#627 from jenkinsci/fix-test

c15d510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @omehegan@paintingStyle@JokerDevops

        Issue actions

          Hook execution failed: execution expired · Issue #627 · jenkinsci/gitlab-plugin