Pipelines executions can contain after-steps. After-steps are steps that are executed after a pipeline run has either failed or passed. A good use-case for after-steps is notifications to an IRC channel or HipChat Room, which close an issue on a project management system or send out a newsletter after a successful deploy.

Here’s an example that leverages the hipchat-notify step to send a notification. Note the use of the after-steps element to signify that the message has to be sent after the steps of the deploy.

        - script:
            name: fabric deploy
            code: |
              fab deploy
        - hipchat-notify:
            token: $HIPCHAT_TOKEN
            room_id: id
            from-name: name

One major difference between steps and after-steps is that failing after-steps do not change the result of the pipeline run.