After making commits to Stash, notify Jenkins that a new build has been created.
- Git Plugin - Jenkins needs to have the Git Plugin installed in Jenkins
Once installed, follow these steps:
- Navigate to a repository in Stash.
- Hit the Settings link
- In the left-navigation, hit the Hooks link
- For the Stash Post-Receive Webhook to Jenkins, click the Enable button.
- Enter the URL to your Jenkins instance
- Enter the URL to the Git repository, as it is configured in Jenkins for your project. If you're using ssh in Jenkins, use the SSH clone URL here. Otherwise, use the HTTP URL.
- Submit the form.
- Commit some code and watch it trigger a build!