Maven steps enable deprecated injectBuildVariables option

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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 
      				}

            Assignee:
            Daniel Spilker
            Reporter:
            Jakub Bochenski
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: