Remove duplicate Jenkins push trigger - #6166
Open
JP0P wants to merge 1 commit into
Open
Conversation
JP0P
marked this pull request as draft
August 19, 2026 02:27
JP0P
force-pushed
the
codex/remove-duplicate-jenkins-trigger
branch
from
August 19, 2026 21:07
b7f1ba3 to
5cc6634
Compare
JP0P
marked this pull request as ready for review
August 19, 2026 21:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the redundant
githubPush()trigger from the multibranch Jenkins pipeline.Why
GitHub Branch Source already handles repository push events for this multibranch pipeline. The declarative
githubPush()block persists a second, generic GitHub push trigger on each child job, adding a repository-wide SCM-polling path alongside Branch Source.This is a known source of build amplification. Builds #160 and #161 both built commit
7795512, and Jenkins attempted to queue anothertestMaestrobuild while #166 was running. Historical incidents with more than two duplicates may include additional webhook, indexing, replay, or queue causes; this PR removes one redundant trigger path but does not claim comprehensive deduplication.disableConcurrentBuilds()remains enabled. It prevents simultaneous execution of the same child job, but duplicate requests may still remain queued.Controlled reproduction
We reproduced this scheduling path in an isolated
edge-testermultibranch probe before applying the equivalent trigger removal:39f7dd1a). Fix android build #7 had bothBranchEventCauseandGitHubPushCause; Close side menu when pressing settings #8 had onlyGitHubPushCause.Changes foundand queued Close side menu when pressing settings #8.disableConcurrentBuilds()delayed the duplicate but did not deduplicate it.githubPush(), two separate probe revisions each built exactly once. Three unrelated repository pushes and two same-revision webhook replays produced no generic polling, queued duplicate, or additional build.This is controlled before/after evidence that the redundant generic trigger can create the observed duplicates and that removing it prevents that scheduling path. It does not rule out every possible future source of duplicate requests.
Risk
Low. The final diff only removes three lines of Jenkins trigger configuration.
disableConcurrentBuilds()remain unchanged.Both trigger mechanisms use Jenkins'
/github-webhook/endpoint, sogithubPush()is not an independent delivery fallback. Any duplicate or missing webhook-delivery investigation is separate from removing this redundant scheduling path.Validation
GitHubPushTrigger.testMaestrojob configuration contains no generic GitHub push trigger.Children that have not executed the updated Jenkinsfile may retain the old persisted trigger, and replaying a pre-change build can restore it.