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
119 stars 85 forks source link

Implement configuration to ignore archived GitLab repositories #417

Open alexqfredrickson opened 1 month ago

alexqfredrickson commented 1 month ago

What feature do you want to see added?

In GitLab, you can archive a repository.

Per the docs, they are:

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

Turiok commented 1 week ago

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