Is there a way to add the build id to the Manifest file of an EAR? I have tried adding variables, and I “think” I have added the Maven Options that I would normally put on the command line to set variables in my POM. BUt nothing seems to work. Answer The Build.BuildId is a predefined variable and it’s the
Tag: devops
Does cf run-task need env/script uploaded befrore running? An elegant way?
I’m working with cloud foundry. My need is to run a database migration aside from my application so that I can trigger the migration in some way (cf command, api call, etc) when I need. I was recommended to use cf run-task. After checking, my understanding is that, cf run-task is a “SSH client” interface to the cf space since
Can I choose to include/exclude what controller is deployed per environment in Spring Boot?
I would like to expose an endpoint only to certain TEST environment and leave it out altogether in PROD. I will have a separate @RestController for this endpoint. My question is how to ensure this endpoint is accessible only from the test env and never in production? I tried to play around with @ComponentScan, but didn’t get very far. Answer