4

Supposed I have a git repo managed by Atlassian Stash. Can I search all files in all project for a specific text? is there such a tool out there, already?

If not, do you think it would be build-able using the API for Stash?

Belun
  • 213
  • 3
  • 7

3 Answers3

2

Code search is now a built-in feature of Bitbucket Server (formerly called Stash). This was added in 2016. See https://blog.bitbucket.org/2016/03/24/introducing-code-search-for-bitbucket-server/.

2

There is no such functionality in Stash itself (as discussed in the Atlassian bugtracker at STASH-2851), but there is a third-party plugin in the marketplace and on GitHub: https://github.com/palantir/stash-codesearch-plugin

It does, however, require an ElasticSearch node running alongside and doesn't seem to be trivially installable.

jstarek
  • 1,007
  • 8
  • 22
0

There's a paid easier version to install on the marketplace currently:

https://marketplace.atlassian.com/plugins/com.mohamicorp.stash.search-for-stash/server/overview