What's the easiest way to make Stash more useful for your team? Extend it. Get the details on how to hack Stash with merge conditions, pre- and post-receive hooks, and more from Stash full stack developer Jason Hinch.
5. GETTING STARTED
Stash plugin 101
• In-process add-on (aka p2 plugins)
• Shares host applications resources
• OSGi bundle with
atlassian-plugin.xml
• Built on the Atlassian Platform
• Web - Filters, Servlets, Web Resources, Web Fragments
• Business - SAL, Atlassian Cache, Atlassian Scheduler
• Data - PluginSettings (SAL), ActiveObjects
• Atlassian Connect coming soon
6. Hooked on Stash
GETTING STARTED
HOOKED ON STASH
TOO MUCH TO HANDLE
QUESTIONS & REFERENCES
7. HOOKED ON STASH
Repository Hooks
• Configured per repository
• Enabled/Disabled
• Persisted settings (optional)
• Prevent pushes & merges
• Notified on successful
change
8. HOOKED ON STASH
Repository Hooks
• Examples
• Prevent tag deletion
• Commits without referenced
JIRA ticket
• Branch naming conventions
• Notify build server of new
changes
• Notify mirror to synchronize