bw6-plugin-maven icon indicating copy to clipboard operation
bw6-plugin-maven copied to clipboard

Lack of support for environment variables

Open mhale opened this issue 9 years ago • 1 comments

Hi,

In a PCF manifest.yml file, environment variables are set like this:

env:
  BW_LOGLEVEL: ERROR
  BW_PROFILE: PCF

There is no currently support for setting these values in the plugin, or reading them from the properties files. Instead they need to be hardcoded in the pom.xml like this:

<env>
  <BW_LOGLEVEL>ERROR</BW_LOGLEVEL> 
  <BW_PROFILE>PCF</BW_PROFILE> 
</env>

This means it is impossible to use different values in different environments, defeating the purpose of using environment variables in the first place.

Could the ability to set environment variables in properties files and dialogs be added to this plugin please.

Thanks.

mhale avatar Apr 05 '16 16:04 mhale

That's correct, this plugin right now doesn't support environment variables, for now as you rightly mentioned you can hard-code them using env tag in your pom.xml of application project. We will going to add this feature in our next release. Thanks.

roagarwal avatar Apr 07 '16 10:04 roagarwal

We do support environment variables now when the deployment mode is Docker/PCF.

ukuppa-tibco avatar Nov 18 '24 09:11 ukuppa-tibco