The 'Update Bitbucket Build Build Status Build Event Handler' is an event handler which interacts with the Bitbucket Server (previously Stash) Build Integration REST API. This feature allows Continua CI to mark commits within a Bitbucket Server repository with a build state of successful, failed, or "in progress".
The event handler is set to automatically respond to the following Build Events:
The Pending status is sent when the On Before Stage Start event is triggered for a specified stage.
The Success status is sent when the On Stage Completed event is triggered for a specified stage, or optionally when the On Build Pending Promotion event fires - whichever is first.
The Failure status is sent when the On Stage Completed event is triggered for a specified stage or On Build Stopping, On Build Completed events are triggered and the build has failed.
This event handler works fantastically as a pre-step within a pull request pipeline. ContinuaCI can be configured to automatically pull the request, build it, test it, and report back its status.
The URL of the Bitbucket Server REST API endpoint
The Bitbucket Server username - used to login (this user should have access to the repository in question).
The Bitbucket Server password - used to login (passwords should not contain any of the following characters: !:@).
A comma separated list of repository names to apply this status information to.
An optional name to be shown with the build status.
A key unique to the build will allow multiple Bitbucket Server builds to be created on one commit - one for each build. Use a key unique to the configuration (or project) to ensure each build in the configuration (or project) makes updates to a single Bitbucket Server build per commit.
Enter the stages which trigger this event handler.
The stage for the On Before Stage Start event when the 'Pending Comment' text will be sent
The stage for the On Stage Completed event when the 'Success Comment' or 'Failure Comment' text will be sent
If any stage is awaiting promotion, send the Success or Failure Comment on the On Build Pending Promotion event
Enter the comments that you wish to send to the Bitbucket Server
The text of the comment that will be sent when the build hits the 'On Before Stage Start' event for the specified stage.
The text of the comment that will be sent when build hits the 'On Stage Completed' event for the specified stage, and the build has failed.
The text of the comment that will be sent when build hits the 'On Stage Completed' event for the specified stage, and the build has succeeded.
Select the build options for this event handler
Should the event handler wait for the result before proceeding. Unchecking this option will run the Event Handler in a separate thread.
Whether or not to fail the build if this event handler fails.
Whether or not logs for this event handler will be displayed in the build log.