[JENKINS-63219] Github PR triggers builds for different branch
We have the following branches in our repository: `v4.2` and `v5.0`. Each branch has two builds (for linux and windows).
When a PR is merged to the `v4.2` branch, the related webhook triggers all of the builds for both `v4.2` and `v5.0`:
`Testsv42_Linx64`
`Testsv42_Winx64`
`Testsv50_Linx64`
`Testsv50_Winx64`
This is how the `Testsv42_Linx64` build is configured. The rest of the builds are configured similarly.

Additional note: the v5.0 branch contains some commits from the v4.2 branch - the v4.2 branch is merged to v5.0 once in a while.
Originally reported by topalach, imported from: Github PR triggers builds for different branch
- assignee:
lanwen
- status: Open
- priority: Major
- component(s): github-plugin, pipeline-github-plugin
- label(s): plugin
- resolution: Unresolved
- votes: 1
- watchers: 3
- imported: 2025-12-08
Raw content of original issue
We have the following branches in our repository: `v4.2` and `v5.0`. Each branch has two builds (for linux and windows).
When a PR is merged to the `v4.2` branch, the related webhook triggers all of the builds for both `v4.2` and `v5.0`: `Testsv42_Linx64` `Testsv42_Winx64` `Testsv50_Linx64` `Testsv50_Winx64`
This is how the `Testsv42_Linx64` build is configured. The rest of the builds are configured similarly.
Additional note: the v5.0 branch contains some commits from the v4.2 branch - the v4.2 branch is merged to v5.0 once in a while.
environment
Jenkins 2.235.2<br/>
GitHub plugin 1.31.0
1 attachment
arek:
- Original comment link
Raw content of original comment:
lanwen Any update on this? Can you suggest some workaround? This is affecting our CI and we'd like to get it resolved as soon as possible.
lanwen Any update on this? Can you suggest some workaround? This is affecting our CI and we'd like to get it resolved as soon as possible.
shadycuz:
- Original comment link
Raw content of original comment:
Super annoying bug, also affects the pipeline-github plugin that creates a branch for each PR.
Super annoying bug, also affects the pipeline-github plugin that creates a branch for each PR.
