GitLab Webhook for push events - Error 401 An access token is required

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Minor
    • Component/s: git-plugin
    • Environment:
      OS: CentOS 7
      Jenkins Version: 2.346.2
      Git Plugin Version: 4.11.4
      GitLab Version: 15.2.1

      Hello,

      I am using a GitLab webhook for push events to trigger the build of my Jenkins project (Poll SCM). The webhook URL is in the format "https://jenkins_url/git/notifyCommit?url=repo_url").

      Since the last Git Plugin update, I receive the following error when executing the webhook:

      "Hook executed successfully but returned HTTP 401. Error 401 An access token is required. Please refer to Git plugin documentation for details."

      I never used a token for the webhook and don´t need one either.
      I already found the documentation for push notification https://plugins.jenkins.io/git/#plugin-content-push-notification-from-repository and tried to execute the command in script console and add it to the java start parameter, nothing is working (maybe I am doing something wrong...)

      Can please someone let me know how to use the webhook without a token again?

      Thank you!

      Best regards,
      Bjoern

            Assignee:
            Mark Waite
            Reporter:
            Björn Wentz
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: