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

hook URL error when webhooks arent managed

    XMLWordPrintable

Details

    Description

      I have a localhost environment (for debugging purposes) with the 'Manage webhooks' checkbox unchecked. When I create a new multibranch pipeline adding a GitLab project as a source I receive the following error:

      Caused by: java.lang.IllegalStateException: Jenkins URL cannot start with http://localhost 
      URL is: http://localhost:8080/jenkins/
      

      This happens because after saving, the webhooks are being created for my project. But I've disabled the option to manage webhooks.

      As far as I understand, If 'Manage webhooks' option is disabled, then webhooks shouldn't be created.

      Attachments

        Activity

          mistermoper Omar Lopesino added a comment - - edited

          I've created this pull request that solves the problem for me https://github.com/jenkinsci/gitlab-branch-source-plugin/pull/102. It doesn't create the webhooks when 'manage webhooks' option is disabled. Give me some feedback, I'm open to suggestions.

          mistermoper Omar Lopesino added a comment - - edited I've created this pull request that solves the problem for me https://github.com/jenkinsci/gitlab-branch-source-plugin/pull/102 . It doesn't create the webhooks when 'manage webhooks' option is disabled. Give me some feedback, I'm open to suggestions.

          People

            surenpi Rick
            mistermoper Omar Lopesino
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: