How to install add-ons on a dev environment for Script runner

Hi,

I want to user Adaptavist Script runner for Jira to create some extra functionlities in combination with some Tempo Timesheets features.

Using the instructions on 'setting up a dev environment', I can develop and debug a running Jira instance. There's also instructions how to install Jira Software or Service desk.

But what steps can I take have also an add-on such as Tempo Timesheets installed in this dev environment? Should I request an evaluation key ? Or should I debug against a dedicated Dev/test environment instead of the maven-best local environment?

2 answers

Hi, 

thanks for the reply. I got it working with your help, although a bit differently.

Steps taken:

1. start jira on my dev machine: 'atlas-mvn jira:debug'
2. Create some test projects & issues
3. Go to manage add-ons, install the Tempo timesheets add-on . It accepts the license key from my production server ID (I didn't expect that). Create some more test data.
4. shutdown this dev jira.
5. run atlas-create-home-zip and copy the zipfile to some src\resources directory
6. add productDataPath to pom.xml

--- now the trickier stuff: this zipfile doesn't contain the plugins I installed manually in step 3. Don't know if this can be automated somewhere in the pom.xml, so a manual workaround:
7. copy the tempo plugin .jar files from target\jira\home\plugins\installed-plugins to some other backup directory
8. delete the entire target directory
9. run atlas-debug again.
10.  while booting, copy the jar files from backup dir to target\jira\home\plugins\installed-plugins

Then it works for me. 
As far as Ican see, that atlass-install-plugin command only installs the 'current' plugin, not any other existing plugin from the marketplace.
An way to automate steps 7 onwards would be nice, but I have enough to get started . thanks

 

0 vote

You can use pluginArtifacts section to install additional plugins - see https://developer.atlassian.com/docs/developer-tools/working-with-the-sdk/about-amps-build-options/amps-build-configuration-reference

The problem you will probably have is tempo is probably not in any public maven repo, so you would need to install it locally using mvn install:install-file (or deploy if you have your own nexus or artifactory etc).

Also note that https://developer.atlassian.com/market/add-on-licensing-for-developers/timebomb-licenses-for-testing - the first key will work with any marketplace-licensed addon for 3 hours. 3 hours is the same as the host licence, so should not be too painful.

 

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,173 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot