jenkinsci / jenkinsci/git-plugin
[JENKINS-16564] Calling build.getResult after aborting a build manually (by clicking the Red cross) gives the result as "FAILURE" instead of "ABORTED"
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
I am trying to extend the jira plugin
- I am performing a post build task.
- I am using build.getResult() to get Result of the current build.
- So whenever I abort a build manually (clicking the red cross) it returns a result as "ABORTED"
But when I am configuring a job with a git repository.And I run the job and abort the build manually it returns the result as "FAILURE" instead of "ABORTED"
It is blocking me on my task as If the result is "FAILURE" the plugin performs "A" task and on "ABORTED" performs "B" task.
---
Originally reported by
rupalibehera, imported from: Calling build.getResult after aborting a build manually (by clicking the Red cross) gives the result as "FAILURE" instead of "ABORTED"
Raw content of original issue
I am trying to extend the jira plugin
- I am performing a post build task.
- I am using build.getResult() to get Result of the current build.
- So whenever I abort a build manually (clicking the red cross) it returns a result as "ABORTED"
But when I am configuring a job with a git repository.And I run the job and abort the build manually it returns the result as "FAILURE" instead of "ABORTED"
It is blocking me on my task as If the result is "FAILURE" the plugin performs "A" task and on "ABORTED" performs "B" task.
Contributor guide
Assessment
This issue has not been assessed yet.