Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
- Jenkins 2.176.4. It's the environment generated by maven (https://www.jenkins.io/doc/developer/tutorial/run/)
- Ubuntu 20.04.1 LTS \n \l
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.
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.