0

You can use variable defined in jenkins in an application.properties so that it is overridden by a value when jenkins starts building the application. Some example of this configuration.

Example application.properties

spring.datasource.url = $ {VARIABLE-JENKINS}
Ger
  • 511
  • 1
  • 11
  • 24
  • https://stackoverflow.com/questions/25855795/spring-boot-and-multiple-external-configuration-files – Anil Feb 26 '19 at 12:38
  • My question is in using in the application.properties a jenkins variable. Example application.properties spring.datasource.url = $ {VARIABLE-JENKINS} – Ger Feb 26 '19 at 13:02

0 Answers0