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

jiraAddComment terminates the step prematurely

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not A Defect
    • jira-steps-plugin
    • None
    • jenkins 2.150.3
      Jira Pipeline Steps 1.4.4

    Description

      At the end of my pipeline, I am iterating the changeSets and the commits therein looking for strings that match Jira tickets, in order to update all Jira's with code present in a build.  In theory, this could result in multiple Jiras needing to be updated, so this is done in a loop, potentially making multiple calls to jiraAddComment(..).   However, the entire step stops (seems to return success) once the first jiraAddComment is completed.

      See attached source and output.  Following call to jiraAddComment(..), the subsequent echo should fire indicating that execution flow has continued.  The first jiraAddComment appears in the log (and the comment appears in Jira).  However, no subsequent echos in the log.  No subsequent call to jiraAddComment in the log, and no subsequent comments in Jira. 

      It is as-if execution stops at the first call to jiraAddComment

      Attachments

        1. output.txt
          1 kB
        2. output-final.txt
          4 kB
        3. output-stubCall.txt
          4 kB
        4. output-truncatedCall.txt
          2 kB
        5. source.txt
          4 kB

        Activity

          jbennett20912 Jeffrey Bennett created issue -
          jbennett20912 Jeffrey Bennett made changes -
          Field Original Value New Value
          Attachment output.txt [ 46189 ]
          Attachment source.txt [ 46190 ]
          jbennett20912 Jeffrey Bennett made changes -
          Description At the end of my pipeline, I am iterating the changeSets and the commits therein looking for strings that match Jira tickets, in order to update all Jira's with code present in a build.  In theory, this could result in multiple Jiras needing to be updated, so this is done in a loop, potentially making multiple calls to jiraAddComment(..).   However, the entire step stops (seems to return success) once the first jiraAddComment is completed. At the end of my pipeline, I am iterating the changeSets and the commits therein looking for strings that match Jira tickets, in order to update all Jira's with code present in a build.  In theory, this could result in multiple Jiras needing to be updated, so this is done in a loop, potentially making multiple calls to jiraAddComment(..).   However, the entire step stops (seems to return success) once the first jiraAddComment is completed.

          See attached source and output.  Following call to jiraAddComment(..), the subsequent echo should fire indicating that execution flow has continued.  The first jiraAddComment appears in the log (and the comment appears in Jira).  However, no subsequent echos in the log.  No subsequent call to jiraAddComment in the log, and no subsequent comments in Jira. 

          It is as-if execution stops at the first call to jiraAddComment
          jbennett20912 Jeffrey Bennett made changes -
          Attachment output-stubCall.txt [ 46195 ]
          jbennett20912 Jeffrey Bennett made changes -
          Attachment output-truncatedCall.txt [ 46196 ]
          nrayapati Naresh Rayapati made changes -
          Priority Critical [ 2 ] Minor [ 4 ]
          jbennett20912 Jeffrey Bennett made changes -
          Attachment output-final.txt [ 46197 ]
          jbennett20912 Jeffrey Bennett made changes -
          Resolution Not A Defect [ 7 ]
          Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
          jbennett20912 Jeffrey Bennett made changes -
          Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]
          nrayapati Naresh Rayapati made changes -
          Status Closed [ 6 ] Fixed but Unreleased [ 10203 ]
          nrayapati Naresh Rayapati made changes -
          Status Fixed but Unreleased [ 10203 ] Closed [ 6 ]

          People

            nrayapati Naresh Rayapati
            jbennett20912 Jeffrey Bennett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: