jenkinsci / jenkinsci/git-plugin
[JENKINS-41906] Abort Job if no change in defined branch (e.g. master)
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
If the GIT plugin pulls the latest version from the defined branch and there is no change, the following build steps should not be executed and the jenkins job should be aborted with status SUCCESS.
Reason: When using webhooks (Bitbucket), jobs get triggered by any commit to any branch. So the job for master branch is triggered all the time and runs through although there was no change to it.
---
Originally reported by someid, imported from: Abort Job if no change in defined branch (e.g. master)
Raw content of original issue
If the GIT plugin pulls the latest version from the defined branch and there is no change, the following build steps should not be executed and the jenkins job should be aborted with status SUCCESS.
Reason: When using webhooks (Bitbucket), jobs get triggered by any commit to any branch. So the job for master branch is triggered all the time and runs through although there was no change to it.
Contributor guide
Assessment
This issue has not been assessed yet.