I have a Spring Boot application for UI test automation using Cucumber and Selenium.
The application is expected to test multiple environments.  

To begin with I have created json files with required properties like URLs, credentials etc. and load it(pass the file path as a property and use it) while triggering the test (`mvn test -DconfigFile=config/env1_config.json`).

I see that using profiles while running test is an option`-Dspring.profiles.active=client1` but as i will configure multiple pipelines in Jenkins for testing multiple environments to use same project with different configuration files, it will clone the entire project and run tests in workspace corresponding to the pipeline. To avoid keeping multiple copies of the project, i am planning to use Rest API to trigger Selenium tests and have configuration files in Git.

Is it possible to create multiple application properties files with custom properties, place them in Git and use required property file in a Spring Boot application(inside a Rest API impl) based on a property or RequestParam using Spring Cloud Config or something?