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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.