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 item | Description | Default value |
---|---|---|
Script timeout | Identifies how long (in milliseconds) a script can run for before being stopped | 3000ms |
HTTP requests allowed | Determines whether JavaScript make HTTP calls to remote servers | Enabled |
HTTP Socket timeout | Identifies how long (in milliseconds) HTTP connections are attempted | 3000ms |
HTTP Connection timeout | Identifies how long (in milliseconds) HTTP connections are held once they are established | 3000ms |
Command execution allowed | Determines whether JavaScript can shell out and execute a command on the command line as the Bitbucket Server user | Disabled |
Command execution timeout | Identifies how long (in milliseconds) to wait for a command to run before attempting to kill it | 3000ms |
Outbound email allowed | Determines whether the JavaScript can trigger emails to be sent | Enabled |
Email subject prefix | Identifies a prefix for the subject line of any emails sent | None |
...