3

On Jelastic, I created a node for building an application (maven), there are several identical environments (NGINX + Spring Boot), the difference is in binding to its database and configured SSL.

The task is to ensure that after building the application (* .jar), deploy at the same time go to these several environments, how to implement it?

When editing a project, it is possible to specify only one environment, multi-selection is not provided.

rdj7
  • 1,905
  • 4
  • 18
  • 33

2 Answers2

3

it`s allowed to specify just one environment

We suggest creating a few environments using one Repository branch, and run updates by API https://docs.jelastic.com/api/#!/api/environment.Vcs-method-Update pushing whole code to VCS.

Lidia
  • 46
  • 3
2

It's possible to use CloudScripting technology for attaching custom logic to onAfterBuildProject event and deploying the project to additional environments after build is complete. Please check this JPS as an example of the code syntax. Most likely you will need to use DeployProject API method.

Ruslan
  • 395
  • 3
  • 12