This is simple example of how to create a plugin for Stash that will trigger a URL webhook in Jenkins.

When running Stash add the following to your command line arguments:

    -Dwebhook.url=http://localhost:8080/jenkins/git/notifyCommit?url=$URL&branches=$BRANCHES

Where $URL will be replaced with the HTTP url of the repository, and $BRANCHES contains a comma separated list of branches.

To build this plugin use the standard Atlassian Plugin SDK and/or run:

    mvn install

And upload `target/stash-webhook-plugin-1.0.0-SNAPSHOT.jar` to Stash.

This is simple example of how to create a plugin for Stash that will trigger a URL webhook in Jenkins.

When running Stash add the following to your command line arguments:

    -Dwebhook.url=http://localhost:8080/jenkins/git/notifyCommit?url=$URL&branches=$BRANCHES

Where $URL will be replaced with the HTTP url of the repository, and $BRANCHES contains a comma separated list of branches.

To build this plugin use the standard Atlassian Plugin SDK and/or run the following (*must* be Maven 2.1.0):

    mvn install

And upload `target/stash-webhook-plugin-1.0.0-SNAPSHOT.jar` to Stash.

Add note about maven 2.1.0
Add note about maven 2.1.0
