jenkinsci / gitlab-branch-source-plugin

A Jenkins Plugin for GitLab Multibranch Pipeline jobs and Folder Organization
https://plugins.jenkins.io/gitlab-branch-source
MIT License
124 stars 94 forks source link

Multibranch Pipeline Branch Scanning Hang #458

Open arechavarria opened 1 week ago

arechavarria commented 1 week ago

Description of Changes

This pull request introduces a configurable indexingTimeout parameter to the gitlab-branch-source plugin in Jenkins, enabling users to set a maximum wait time in seconds for indexing GitLab repositories. This timeout is applied in two key methods:

Additionally, a new indexingTimeout property has been added to the UI configuration in the config-detail.jelly file, enabling users to set the timeout through Jenkins' interface.

image

Testing Done

Manual tests were conducted to validate indexingTimeout functionality in various scenarios:

  1. Defined Timeout (greater than 0): A sample timeout was set, and it was verified that the operation would be interrupted if it exceeded the specified time.

image

  1. Undefined Timeout (0): Confirmed that the operation continued without interruption when indexingTimeout was set to 0.

image

  1. Regression: Tested across different projects and merge requests to ensure the new functionality did not interfere with standard GitLab indexing.

Submitter Checklist