Sign in to Community
Sign in to view all badges
I'm moving to Cloud Manager. I know how to have different OSGI config files for stage, prod and dev.
I can make put different npm build commands in the package.json.
However, in the POM file, I need to be able to use Profiles to have different commands for Prod and Stage.
However, I don't seem to be able to do that. Is there another way around this? There are some environment variables like PIPELINE_ID etc. Are there ones that will distinguish between Prod and Stage.?
How do people normally do it.
you can pass custom variables to pipe line using API call to pipeline.
Ideally there should not be any 2 different build process for stage and prod . For dispatcher you might need to maintain apache system variables unique to environments. But the dispatcher code needs to be same on stage and production.