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

Conditional step in post step of Maven Project run despite of result of build step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • Jenkins ver. 1.642.2
      Maven 3.2.5
      Maven Plugin ver. 2.12.1
      Conditional-buildstep plugin ver. 1.3.3

      Not expected behavior when run Maven project job in Jenkins and set Conditional step(single) to execute shell when build status SUCCESS.
      When Maven build step fail( for example because of failing to parse POMs) conditional step *will be executed and it *not should be.
      Seems like Conditional step can not retrieve Maven build status.
      After adding System Groovy Script to Maven post step, Job build status is null and in Post-Build Action is FAIL when one of Maven build steps failing and is SUCCESS when all Maven steps are successful

            domi Dominik Bartholdi
            stasamdocs Stanislav Roshkulets
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: