toc pluginProject Creator for JIRA
Configuration
of add
Configuring the Add-on
In the administration area of StashBitbucket Server, click on JavaScript JS Hooks to get to display the global configuration area page for JavaScript Hooks for StashBitbucket Server. From this screen page, the administrator can configure the available hook actions available to the script writers.
Configuration item | Description | Default value | |
---|---|---|---|
Script timeout | How long Identifies how long (in milliseconds) a script can run for before being stopped | 3000ms | |
Enable HTTP requests allowed | Can the Determines whether JavaScript make http HTTP calls to remote servers | Enabled | |
HTTP | ConnectionSocket timeout | Identifies how long (in milliseconds) HTTP connections are attempted | 3000ms |
HTTP Socket Connection timeout | Identifies how long (in milliseconds) HTTP connections are held once they are established | 3000ms | |
Enable external commands | Can the JavaScript Command execution allowed | Determines whether JavaScript can shell out and execute a command on the command line as the stash Bitbucket Server user | Disabled |
External command Command execution timeout | How Identifies how long (in milliseconds) to wait for a command to run before attempting to kill it | 3000ms | |
Enable Email | Can Outbound email allowed | Determines whether the JavaScript can trigger emails to be sent? | Enabled |
Email subject prefix | A Identifies a prefix for the subject line for of any emails sent | None |
Tip |
---|
Be sure to check out our sample snippets and API reference for inspiration! |