How to pass environment variables while running/packaging Jira Plugin?

imamudin naseem April 10, 2018

I want to pass some environment variables(production/development/staging) to the plugin, based on which it will function accordingly.

 

I want to pass them while doing atlas-run and atlas-package and retrieve it in Java. How can I do that?

1 answer

0 votes
miikhy
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 Leaders.
April 10, 2018

Hi,

Not a real expert but have some experience with plugins, I don't think it's feasable as the atlas-run command is meant to start a local SDK Jira instance, there's no direct link with your final addon here. Plugin Data might not come from anything external to its container (Tomcat), to be confirmed by advance experts but that would be my 5 cents!

Hope this helps!

Cheers

imamudin naseem April 10, 2018

I want to load property files(which includes some config, urls) based on environment. There should be a way to load appropriate property file based on environment, since hardcoding environment in codebase is not a good approach

Suggest an answer

Log in or Sign up to answer