Not sure about the Java properties file, but I succeed by doing a .groovy
file if that's interest you (probably not, but here it is if someone need
it, it's unsafe but in controlled env it doesn't matter):
*Jenkinsfile*
def my_var = evaluate(new File("myEnv.groovy"));
bat "\"${my_var.python_2_exe}\" myscript.py"
...
*myEnv.groovy*
def rv= [:]
rv['mercurial_url'] = 'http://mercurial.buildserver/'
rv['python_2_exe'] = "c:\\Python27\\python.exe"
...
return rv;
I put the .groovy file on the build machine jenkins folder, so the
Jenkinsfile from the repos can work with vars from any of our build
machines or network emplacement.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/1a03bb2f-5022-4005-ab10-5e3146aebcd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.