2

I am looking into bitbucket server plugin development and using atlas on mac. From what I understand in the tutorials, you write your code and run atlas-run to execute - but this downloads the entire bitbucket application.

Is there a way to download this implementation once and share among plugins for development? Or to tell atlas the location of the shared instance?

Evan M.
  • 403
  • 5
  • 13
  • 1
    what do you want to share? the git data? the bitbucket running instance? If you are concerned about the download process, I think it relies on maven and the same BB version won't be downloaded twice. – Yuri G. Apr 12 '18 at 08:22
  • Yeah, the download process. It sticks everything into `target` of the current project – Evan M. Apr 12 '18 at 16:38
  • In addition its really badly documented - or documentation partial/broken. – Evan M. Apr 12 '18 at 16:39
  • yeah, Atlassian's documentation isn't perfect :) – Yuri G. Apr 12 '18 at 16:47

1 Answers1

1

As I mentioned in my comment the download process relies on maven repository find ~/.m2/repository/com/atlassian/ -name \*.war returns ~/.m2/repository/com/atlassian//bitbucket/server/bitbucket-webapp/5.5.2/bitbucket-webapp-5.5.2.war

So as long as you use the same maven repo and use the same BB version it will reuse the existing war file from the maven repo

Yuri G.
  • 4,323
  • 1
  • 17
  • 32
  • I created 2 different plugin projects, ran `atlas-run` (installed from homebrew on mac) and even though for the first plugin then entire 2GB+ was downloaded, then same happened for the second. – Evan M. Apr 12 '18 at 19:08
  • and if you run `atlas-run` again, does it download again? – Yuri G. Apr 12 '18 at 19:48