Question

I want that my jenkins job will use env variables from a properties file. is that possible, and how?
Thanks, Ohad.

EDIT: I want environment variables to be resolved when checkout from svn, so that few projects will have the same revision. I am trying to use a solution suggested here.

Was it helpful?

Solution

There are a couple of plugins used for this type of thing. You might want to take a look at the following two. I have feeling the one your looking for is the second one.

  1. Setenv
  2. Envfile

If you want to get all manual about it you can also do this.

Manage Jenkins -> Configure System -> Global Options -> Environment variables

Goodluck!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top