0

I'm bit new to jenkins. What I want is to edit config files with environment variables of jenkins. I tried ant scripts, Nant plugin but all ended up with errors. If anyone knows something about this please help. For example lets think we want to replace word "hello" in C:\files\test.txt to "bye". word "bye" should be taken from a environment variable of jenkins. Thanks

javatar
  • 1,332
  • 1
  • 17
  • 24

1 Answers1

0

Best is to utilize Jenkins EnvInject plugin. With that you can have a build step to manipulate/generate your properties, and then you can add another build step to load these properties into project environment variables.

See this stackoverflow question for a more detailed example.

Community
  • 1
  • 1
MrsTang
  • 3,119
  • 1
  • 19
  • 24