gitlab-branch-source-plugin icon indicating copy to clipboard operation
gitlab-branch-source-plugin copied to clipboard

Implement configuration to ignore archived GitLab repositories

Open alexqfredrickson opened this issue 1 year ago • 1 comments

What feature do you want to see added?

In GitLab, you can archive a repository.

Per the docs, they are:

  • Labeled with an archived badge on the project page.
  • Listed on the group page in the Inactive tab.
  • Hidden from project lists in Your Work and Explore.
  • Read-only.

In GitLab Branch Source v1.5.4, when clicking Scan GitLab Project Now, the plugin loads Jenkinsfile-based pipelines from archived repositories.

I think it is a fair default assumption that users would not want to see archived GitLab repositories in Jenkins.

I would love to have an option to ignore archived repositories during that scan, even if they contain Jenkinsfiles.

Upstream changes

No response

Are you interested in contributing this feature?

No response

alexqfredrickson avatar Apr 05 '24 19:04 alexqfredrickson

Hi @alexqfredrickson ,

Update the plugin because this trait exists : https://github.com/jenkinsci/gitlab-branch-source-plugin/blob/master/src/main/java/io/jenkins/plugins/gitlabbranchsource/ExcludeArchivedRepositoriesTrait.java

Turiok avatar May 24 '24 20:05 Turiok