jenkinsci / jenkinsci/release-plugin

[JENKINS-31702] Post successful build steps are executed when build fails

Open
#126 1 comment 0 reactions 0 assignees View on GitHub
component:release-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
24
Forks
46
PR merge metrics
No merged PRs in 30d

Description

First build step was to copy artifacts from another job. This build step failed.

Configured post successful build steps of the release plugin are executed anyway. But they should not be executed in my eyes when some build step fails.

Do you have any hints how to debug this?

---
Originally reported by kleini, imported from: Post successful build steps are executed when build fails


  • assignee: petehayes
  • status: Open
  • priority: Critical
  • component(s): release-plugin
  • label(s): plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251223-222157

Raw content of original issue

First build step was to copy artifacts from another job. This build step failed.

Configured post successful build steps of the release plugin are executed anyway. But they should not be executed in my eyes when some build step fails.

Do you have any hints how to debug this?

  • environment: Standalone Jenkins 1.638 with release plugin 2.5.4

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with standalone Jenkins 1.638 and release plugin 2.5.4, using a failed artifact-copy build step followed by configured post-success steps. Trace the release plugin's build-result handling; done means post-success steps are not executed after any failed build step.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devops, release
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.