2

I got 3 profiles for my application in application.yaml

  1. for dev local
  2. for build / test during jenkins build
  3. for deployment using docker and ConfigMap using JIB

part one and three working ok, what I need to do is to fill my placeholders during test run in jenkins with secrets.

so i need to fill

spring:
    config:
        activate:
            on-profile: pipeline
    datasource:
        url: ${pipeline.datasource.url}
        username: ${pipeline.username}
        password: ${pipeline.password}

from secrets ? which plugins ? how ?

UnnameDSoS
  • 93
  • 9
  • Did you have a look at - https://stackoverflow.com/questions/35531661/using-env-variable-in-spring-boots-application-properties – Rauf Aghayev Jul 29 '21 at 10:33
  • Hey, thx for response. that solution uses clear text ! and open shift. while I am using Jenkins, and I need to use a secret provider – UnnameDSoS Jul 29 '21 at 16:53

0 Answers0