Versions Compared

Key

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

Table of Contents

Installing the plugin

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

Image Removed

Configuration of add

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.


 


Panel
borderColor#efefef
bgColor#efefef

On This Page

Table of Contents


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.Image Added

From this screen page, the administrator can configure the available hook actions available to the script writers. 

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

3000ms

Enable Email
Outbound email allowedDetermines 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 sentNone
HipChat allowed
Is HipChat interaction allowed
Status
colourYellow
titleNew in 1.1
true
HipChat Server
The location of the HipChat Server in case of a Private HipChat server being used
Status
colourYellow
titleNEW IN 1.1
https://api.hipchat.com


Info

JIRA integration

Status
colourYellow
titleNew in 1.1
requires a Trusted Application Link set up between the Stash and JIRA instance. See https://confluence.atlassian.com/display/STASH/Linking+Stash+with+JIRA for more details.

...


Tip
Be sure to check out our sample snippets and API reference for inspiration!