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: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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