jenkinsci / jenkinsci/git-plugin

[JENKINS-16646] Git push tag in case if build SUCCESS only, UNSTABLE result is not pushing a tag.

Open
#2,222 11 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

Git push tag only in case if build SUCCESS only, UNSTABLE result is not push a tag.

Since UNSTABLE status in general can be "stable" with warnings. Since compilation errors or something critical don't happens during build we need to have ability to push tag even build is unstable.

Possible fix I will push as pull request.

---
Originally reported by vkravets, imported from: Git push tag in case if build SUCCESS only, UNSTABLE result is not pushing a tag.


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • label(s): git-publisher
  • resolution: Unresolved
  • votes: 4
  • watchers: 7
  • imported: 2025-12-02

Raw content of original issue

Git push tag only in case if build SUCCESS only, UNSTABLE result is not push a tag.

Since UNSTABLE status in general can be "stable" with warnings. Since compilation errors or something critical don't happens during build we need to have ability to push tag even build is unstable.

Possible fix I will push as pull request.

1 attachment

- [publish-only-if-ok.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-last/refs/heads/main/attachments/27781/publish-only-if-ok.png)
> ![publish-only-if-ok.png](https://raw.githubusercontent.com/jenkinsci/attachments-from-jira-issues-last/refs/heads/main/attachments/27781/publish-only-if-ok.png)

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.