Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 809 Bytes

File metadata and controls

19 lines (14 loc) · 809 Bytes

Stash Post-Receive Webhook for Jenkins

After making commits to Stash, notify Jenkins that a new build has been created.

Requirements

  • Git Plugin - Jenkins needs to have the Git Plugin installed in Jenkins

Setup

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!