Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Navigate to the events tab within the desired Build Configuration
  2. Click the 'Create' link within the 'Build Event Handlers' section
    Image Removed
    Image Added

Select an Event Handler

  1. Enter the name of the event handler (in this case 'Update Stash Build Status')
  2. Enter the sequence in which you wish this event handler to be run.  In our case this is the first event handler so we will leave the default of 1
  3. From the type dropdown select 'Update Stash Build Status'

Select Build Event HandlerImage RemovedImage Added

Event Handler Name

...

The order in which the event handler will be run (relevant in the situation where multiple event handlers are present).

Enabled

Whether this specific event handler is able to can be run

Type

The type of event handler (Octopus Deploy, Tag Repository Changeset, Update GitHub Status. Update Stash Build Status) 

...

  1. Enter the BitBucket Server API URL.

  2. Enter your BitBucket Server Username / and Password or  Access Token.
  3. Enter the name of the Continua CI repositories that you wish to consider when updating status (these can be found on the 'repositories' page).Image Removed


Image Added

Stash Server Url

The URL of the Bitbucket

...

Server REST API endpoint 

Username

The

...

Bitbucket Server username - used to login (this user should have access to the repository in question).

Password

The

...

Bitbucket Server password - used to login (passwords should not contain any of the following characters: !:@

...

Access Token

...

).

Repositories

A comma separated list of repository names to apply this status information to.

When To Run

Enter the

...

stages which trigger this event handler

...

.

...


Image Added

Start Stage 

The stage for the On Before Stage Start event when the 'Pending Comment' text will be sent 

End Stage 

The stage for the On Stage Completed event when the 'Success Comment' or 'Failure Comment' text will be sent 

Complete on Waiting Promotion

If any stage is awaiting promotion, send the Success or Failure Comment on the On Build Pending Promotion event

 

Comments

Enter the comments that you wish to send to

...

the Bitbucket Server

...


Image Added

...

In Progress Comment

The text of the comment that will be sent when the build hits the 'On Before Stage Start' event for the specified stage.

Failure Comment

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.

Success Comment

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.

 

Comments

Select the build options for this event handler

...


Image Added

Wait for

...

results

Should the event handler wait for the result before proceeding. Unchecking this option will run the Event Handler in a separate thread.  

Fail

...

build on

...

error

Whether or not to

...

fail the build if this event handler fails.

Log

...

build messages

Whether or not logs for this event handler will be displayed in the build log.