3

I have developed an application that lives in a public Github repository.

The app interacts with systems that require credentials that are currently stored in a properties file.

A jenkins box runs the app periodically.

The problem of saving the project in github without exposing my credentials is succinctly addressed here.

How do I pass my credentials to the jenkins job without exposing the credentials (needed by the app) to my workmates?

Community
  • 1
  • 1
anthonyms
  • 950
  • 1
  • 10
  • 20

1 Answers1

0

In my case I went for a jenkins parametrized build that allowed me to provide string and password type of params.

The params are read in the program via system.getProperty

anthonyms
  • 950
  • 1
  • 10
  • 20