Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17620

Inject env. vars in a pre-build step of a Maven project does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • envinject-plugin
    • None

      You can "inject environment variables" in the "Build Environment" section, or as a build step.

      In a Maven project type, when I use a build step (pre build step in this case), the properties were not available in the maven step, whereas it worked when I used the Build Environment setting.

      In a Freestyle project, both version worked.

      Expected: A Pre build step "Inject Environment Variables" in a Maven Project should make those properties available to the main Maven build step

            gbois Gregory Boissinot
            marc_guenther Marc Günther
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: