EnvInject doesn't pass variables defined in prebuild step if maven project is used

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

XMLWordPrintable

      To reproduce:
      Create maven2 project
      Add prebuild step: Inject environment variables, add to property content field: "VAR123=Value123"
      Set maven goals: "clean -Dparam=${VAR123}"
      Build project

      Logs:
      Executing Maven: -B -f C:\Jenkins\jobs(Temp)\workspace\pom.xml clean -Dparam=${VAR123}

      Update: The bug is reproducible with Jenkins 1.471

            Assignee:
            Gregory Boissinot
            Reporter:
            Roman Milyuchikhin
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: