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 created issue -
          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.
          surenpi Rick made changes -
          Field Original Value New Value
          Assignee Parichay Barpanda [ baymac ] Rick [ surenpi ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          surenpi Rick made changes -
          Status Resolved [ 5 ] Fixed but Unreleased [ 10203 ]
          surenpi Rick made changes -
          Released As https://github.com/jenkinsci/gitlab-branch-source-plugin/releases/tag/gitlab-branch-source-1.5.4
          Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: