-
Bug
-
Resolution: Unresolved
-
Major
-
None
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.
[JENKINS-16564] Calling build.getResult after aborting a build manually (by clicking the Red cross) gives the result as "FAILURE" instead of "ABORTED"
Description |
Original:
I am trying to extend the [jira plugin|https://wiki.jenkins-ci.org/display/JENKINS/JIRA+Plugin] # I am performing a post build task. # I am using build.getResult() to get Result of the previous 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 as the plugin on the result as "FAILURE" performs "A" task and on "ABORTED" performs "B" task. |
New:
I am trying to extend the [jira plugin|https://wiki.jenkins-ci.org/display/JENKINS/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. |
Description |
Original:
I am trying to extend the [jira plugin|https://wiki.jenkins-ci.org/display/JENKINS/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. |
New:
I am trying to extend the [jira plugin|https://wiki.jenkins-ci.org/display/JENKINS/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" - [console output|http://pastie.org/5987093] It is blocking me on my task as If the result is "FAILURE" the plugin performs "A" task and on "ABORTED" performs "B" task. |
Workflow | Original: JNJira [ 147387 ] | New: JNJira + In-Review [ 176891 ] |
Assignee | Original: Nicolas De Loof [ ndeloof ] |