Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69231

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • None
    • 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

            markewaite Mark Waite
            bjoernwentz Björn Wentz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: