سؤال

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.

هل كانت مفيدة؟

المحلول

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!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top