I've used the "jx create spring -d web -d actuator" command to create a simple Spring java application but I can't figure out how I'd change the promotion strategy from Auto to Manual. Can't see how it's being set in the environment configuration.
Asked
Active
Viewed 149 times
1 Answers
2
you can use jx edit env
to edit your Environment
configurations. Or you can use kubectl edit env staging
if you want and edit the custom resource directly.

James Strachan
- 9,168
- 34
- 31
-
would it be something like `jx edit env -n staging --promotion automatic` ?? – Michael Neale Mar 27 '19 at 21:12
-
Thanks James. Running the command `jx edit env -b -n staging -p Manual` works, but I'm wondering how this applied to the github environment repo. Just keen to do it the 'GitOps' way. Loving JX BTW! ;-) – icewhite Mar 28 '19 at 09:43
-
we're just finishing up using GitOps to manage the installation of Jenkins X itself; you can try it out creating a cluster `jx create cluster gke --ng` and then a git repository is created for the `dev` environment so we can manage upgrading/configuring Jenkins X in the same GitOps style. In this case you can modify the environment configurations in the `env/templates/staging-env.yaml` etc – James Strachan Mar 29 '19 at 08:37