jenkinsci / jenkinsci/git-plugin

[JENKINS-41906] Abort Job if no change in defined branch (e.g. master)

Open
#3,041 6 comments 0 reactions 0 assignees View on GitHub
component:git-plugin enhancement imported-jira-issue priority:major resolution:unresolved
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)


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • label(s): bitbucket, jenkins, plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-02

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

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.