jenkinsci / jenkinsci/git-plugin

[JENKINS-44343] Inverse build strategy is building when there are no changes on a branch

Open
#3,106 2 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

I setup a job to build feature branches and skip the master branch. I do this by specifying "*/master" as the branch to build and then inverse as the choosing strategy. I have the job setup to poll SCM every 15 minutes (I don't have access to change the hooks).

When I push changes to a branch other than master, the job does as expected and builds the branch. However when I push changes to master, the job runs and builds the last branch it built. I left this overnight and have a build every 15 minutes of the same commit.

---
Originally reported by jpschewe, imported from: Inverse build strategy is building when there are no changes on a branch


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

I setup a job to build feature branches and skip the master branch. I do this by specifying "*/master" as the branch to build and then inverse as the choosing strategy. I have the job setup to poll SCM every 15 minutes (I don't have access to change the hooks).

When I push changes to a branch other than master, the job does as expected and builds the branch. However when I push changes to master, the job runs and builds the last branch it built. I left this overnight and have a build every 15 minutes of the same commit.

environment

```
Jenkins 2.59

Git plugin: 3.3.0

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.