On Thu, 23 Apr 2015 15:08:49 +0200, Rafael Ribeiro Rezende
<
rafael...@gmail.com> wrote:
> So, I would like a hint here. Is it failing because something in the
> EnvInject itself got broken some time ago? Or the build server changed
> its
> configuration somehow?
As I am looking at it, this is caused by JENKINS-26583[1] - envinject
captures variable value early and do not overwrite it. The reason this
manifests when tests are run from Jenkins is the WORKSPACE variables is
set during build but it likely is not on your development box. I have just
reproduced the failure locally running `WORKSPACE=XXX mvn clean package
-Dtest=EnvInjectBuildWrapperTest#testPropertiesContentCustomWorkspace`.
I gave up[2] half way trying to untangle countless variable contribution
sources in the plugin.
[1]
https://issues.jenkins-ci.org/browse/JENKINS-26583
[2]
https://github.com/jenkinsci/envinject-plugin/pull/37
--
oliver