jenkinsci / jenkinsci/gerrit-trigger-plugin

[JENKINS-61826] gerrit-trigger add support for sparse checkout in dynamic trigger.

Open
#902 0 comments 0 reactions 0 assignees View on GitHub
component:gerrit-trigger-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
226
Forks
289
PR merge metrics
No merged PRs in 30d

Description

I see a need to have support for sparse checkout in the dynamic trigger.

There is support for file patterns for the triggering but that can not be used for spare checkout.

 

We have some repositories that are huge, and I'm only interesting of part of the project.

I guess the gerrit-trigger need to set an environment variable for the paths that can be accessed from the Jenkins pipeline.

 

---
Originally reported by martin5403, imported from: gerrit-trigger add support for sparse checkout in dynamic trigger.


  • assignee: rsandell
  • status: Open
  • priority: Minor
  • component(s): gerrit-trigger-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

I see a need to have support for sparse checkout in the dynamic trigger.

There is support for file patterns for the triggering but that can not be used for spare checkout.

 

We have some repositories that are huge, and I'm only interesting of part of the project.

I guess the gerrit-trigger need to set an environment variable for the paths that can be accessed from the Jenkins pipeline.

 

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the dynamic trigger and its existing file-pattern handling; the issue names no files or tests. Define how sparse-checkout paths should be supplied and exposed to the Jenkins pipeline, then add support and verify that only the requested repository paths are available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
ci-cd, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.