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

Override `Status` in report with `office365ConnectorSend` command

    Details

    • Similar Issues:

      Description

      Hi,

      The office365ConnectorSend works nicely. But let me describe one common workflow when it's used:

      1. We run some tests
      2. We run office365ConnectorSend to indicate success or failure.

      So, I do like: office365ConnectorSend message:'Tests failed', webhookUrl:webhook

      I get a notification like:
      Update from build tests_fail(2)
      @channel Tests failed
      Status Running
      Start Time 2016-12-20 12:48:51 UTC
      View Build

      I would like an ability to change `status` to indicate `Build Success' or `FAILURE' in case the notification is actually the last action in script (and there's no point indicating it's `running`). I think, it would highly improve the readability of notifications.

        Attachments

          Activity

          Hide
          srhebbar Srivardhan Hebbar added a comment -

          With release 2.3, this support has been added to office365ConnectorSend command. To set the status just pass the status to the command via status parameter.
          Syntax:
          office365ConnectorSend message:'<Your message>', status:'<Build status>', webhookUrl:'<Connector webhook url>'

          Show
          srhebbar Srivardhan Hebbar added a comment - With release 2.3, this support has been added to office365ConnectorSend command. To set the status just pass the status to the command via status parameter. Syntax: office365ConnectorSend message:'<Your message>', status:'<Build status>', webhookUrl:'<Connector webhook url>'

            People

            • Assignee:
              srhebbar Srivardhan Hebbar
              Reporter:
              vkorytov Vasily Korytov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: