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

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            stasamdocs Stanislav Roshkulets created issue -
            imod Dominik Bartholdi made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-19802 [ JENKINS-19802 ]
            imod Dominik Bartholdi made changes -
            Resolution Won't Fix [ 2 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 171773 ] JNJira + In-Review [ 199161 ]

              People

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

                Dates

                Created:
                Updated:
                Resolved: