Aside from standard Spring boot properties (eg: --server.port=8081
), the following custom run properties are supported:
api.host
- configures the domain to send the API requestapi.proto
- configures the protocol to send the API requestapi.port
- configures the port to send the API request
And test properties:
test.host
- configures host name or IP for selenoid hub to access test uitest.browser.name
- configures browser name to run functional teststest.browser.version
- configures browser version to run functional tests
Per Spring boot convention, the custom properties can be set a number of ways.
Here's a full example:
mvn clean package && java -jar target/mobile-deposit-ui-1.0-SNAPSHOT.jar --api.host="bank-api.beedemo.net" --api.proto="http" --api.port="8080" --server.port=8081
Note you'll need to install the Spring Boot CLI https://spring.io/guides/gs/spring-boot-cli-and-js/#scratch
GET /info - customised to show the scm and build related info POST /shutdown - cause the container to stop. Useful for shutting down at the end of build testing
The following can be specified at build time to inject version information:
${BUILD_NUMBER}
${BUILD_URL}
${GIT_COMMIT}