Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-20422

Allow "Progress JIRA issues by workflow action" to also be set as 'Post-build action'

    Details

    • Similar Issues:

      Description

      Currently, the "Progress JIRA issues by workflow action" can only be added as a "build step". However, it should also be available as a "Post-build step" in-case this progress should NOT happen when build fails.

      Our use-case: Workflow action "Submit to QA" should only happen if build was successful and all unit tests have passed successfully. We use the xUnit report publisher with specific thresholds as a Post-build action as well. We should be able to place "Progress JIRA issues by workflow action" after these xUnit publishers.

      Here's an example how this doesn't work for us today,
      As you can see, the workflow action happened before the xUnit changed build result to FAILURE.

      10:36:16 [JIRA] Updating issues using workflow action Submit to QA.
      10:36:16 [JIRA] JQL: project = ZZZ and fixVersion = "3.1.x" and status in (resolved)
      10:36:18 [JIRA] Issue ZZZ-2761 transitioned to "In Review" due to action "Submit to QA".
      10:36:19 [JIRA] Issue ZZZ-2749 transitioned to "In Review" due to action "Submit to QA".
      10:36:20 [JIRA] Issue ZZZ-2742 transitioned to "In Review" due to action "Submit to QA".
      10:36:20 [JIRA] Issue ZZZ-2741 transitioned to "In Review" due to action "Submit to QA".
      10:36:21 [JIRA] Issue ZZZ-2733 transitioned to "In Review" due to action "Submit to QA".
      10:36:35 [xUnit] [INFO] - Check 'Failed Tests' threshold.
      10:36:35 [xUnit] [INFO] - The total number of tests for this category exceeds the specified 'failure' threshold value.
      10:36:35 [xUnit] [INFO] - Setting the build status to FAILURE
      10:36:35 [xUnit] [INFO] - Stopping recording.
      10:36:35 Build step 'Publish xUnit test result report' changed build result to FAILURE
      10:36:35 [JDepend] JDepend plugin is ready
      10:36:35 [JDepend] Found 1328 classes in 181 packages
      10:36:35 Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur.
      

        Attachments

          Activity

          Hide
          mykro76 D C added a comment -

          I agree with this feature request. I would like to move issues to the Resolved state if and only if the build is successful.

          Show
          mykro76 D C added a comment - I agree with this feature request. I would like to move issues to the Resolved state if and only if the build is successful.
          Hide
          zajic Jan Zajíc added a comment -
          Show
          zajic Jan Zajíc added a comment - Can you try https://wiki.jenkins-ci.org/display/JENKINS/Any+Build+Step+Plugin for this?

            People

            • Assignee:
              Unassigned
              Reporter:
              rafi Rafael Bodill
            • Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: