The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting software downloads in Stash

DI2E Licensing
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 24, 2014

A user would like to be notified whenever someone downloads their code from Stash. I don't see a quick way to do this other than possibly scraping atlassian-stash-access.log. Is there a better way?

Users are required to log in to Stash to perform any actions, so I know we won't have any anonymous downloads

Please ignore whether this is a good idea or not. For now, ignore the difference between typical git operations (e.g. clone) and a download via https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-archive/.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
TimP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 15, 2014

Hi DI2E,

If you don't mind working with java, the Stash plugin system allows you to implement a servlet-filter module that can be mapped to any URL pattern in Stash. Clone, pull and archive operation URLs have the project key and repository slug in them, which you can use to determine which repository is being downloaded. You can also use the SAL UserManager to determine which user is performing the operation, and then log it to a file / POST it to another webapp / email / hipchat / whatever.

The Stash developer docs have some great material on getting started with the plugin system.

cheers,

Tim

TAGS
AUG Leaders

Atlassian Community Events