jenkinsci / jenkinsci/git-plugin
[JENKINS-44343] Inverse build strategy is building when there are no changes on a branch
- 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
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
Assessment
This issue has not been assessed yet.