Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi All,
After commit and pushing the code in server it will show Author , Commit , Message.
For Commit, it is showing the display id on placing on this it will show the full url..
Is it possible to get this url with stash pre/post hook. Is there any serivce to get it..
Could you suggest me.
Regards
Anil
Hi,
The NavBuilder class can give you URL's to all sorts of pages. For commits you need something like
navBuilder.repo(repository).changeset(hash).buildAbsolute();
You should be able to get the info using Stash hooks (https://developer.atlassian.com/stash/docs/latest/how-tos/repository-hooks.html).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And If I clone the repository how to get the cloned path with hook..
Thansk in advance
Anil Kumar R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.