-
Improvement
-
Resolution: Fixed
-
Major
-
None
From maven-integration-plugin:
Inject build variables
Pass all build variables into maven process in form of java properties. This is seldom needed as Jenkins provides it as environment variables anyway. Preferred way to access Jenkins build variables is to explicitly map it to property in Properties section (MY_VAR=${MY_VAR}).
The DSL Maven step enables this by default. There is no direct way to disable it, one has to go with
maven{ // ... configure { it / injectBuildVariables << false } }
It would be great to change the default to false,but this will break backwards compatibility.
If above is not possible at least adding a direct property/method would be nice so that it can be disabled by
maven{ // ... injectBuildVariables false }