Skip to end of banner
Go to start of banner

Administrator's Guide - 1.0

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

The Javascript Hooks for Bitbucket Server add-on allows repository owners to write hooks in Javascript for pull request or git push blocking, or even to be triggered post push. You can easily identify which parts should be active on a global level.

Installing the Add-on

Project Creator for JIRA is available through the Atlassian Marketplace. Install it through the Universal Plugin Manager in JIRA.

On This Page


Configuring the Add-on

In the administration area of Bitbucket Server, click JS Hooks to display the global configuration page for JavaScript Hooks for Bitbucket Server. From this page, the administrator can configure the hook actions available to the script writers.

 

Configuration itemDescriptionDefault value
Script timeoutIdentifies how long (in milliseconds) a script can run for before being stopped3000ms
HTTP requests allowed
Determines whether JavaScript make HTTP calls to remote serversEnabled
HTTP Socket timeoutIdentifies how long (in milliseconds) HTTP connections are attempted3000ms
HTTP Connection timeoutIdentifies how long (in milliseconds) HTTP connections are held once they are established3000ms
Command execution allowedDetermines whether JavaScript can shell out and execute a command on the command line as the Bitbucket Server userDisabled
Command execution timeoutIdentifies how long (in milliseconds) to wait for a command to run before attempting to kill it

3000ms

Outbound email allowedDetermines whether the JavaScript can trigger emails to be sentEnabled
Email subject prefixIdentifies a prefix for the subject line of any emails sentNone

 

 

 

 

  • No labels