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

Maven project pre steps are not executed in batch mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None
    • Jenkins 1.509.3

      When you execute a maven goal in pre steps the maven goal is not executed in maven's batch mode. This stands in contrast to the default build step which is executed in batch mode.

      Steps to reproduce:

      • Create a new Maven job
      • Add a pre step that runs clean
      • Set the main build to run clean
      • Add an empty pom to the workspace
      • Run the job
      • Open console output
      • See that the pre step is not executed with the -B flag
      • See that the main step is executed with the -B flag

      Expected result:

      Pre step should be executed in batch mode.

            Unassigned Unassigned
            arlol Arlo Louis O'Keeffe
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: