Service Virtualization

 View Only
Expand all | Collapse all

Build Successful despite test cases getting failed in jenkins when using build.xml file

  • 1.  Build Successful despite test cases getting failed in jenkins when using build.xml file

    Posted Jun 26, 2019 10:50 AM
    Edited by av1410 Jun 26, 2019 12:16 PM


  • 2.  RE: Build Successful despite test cases getting failed in jenkins when using build.xml file
    Best Answer

    Posted Jun 26, 2019 12:16 PM
    resolved


  • 3.  RE: Build Successful despite test cases getting failed in jenkins when using build.xml file

    Posted Jun 28, 2019 01:27 AM
    Hi,

    Could you post a brief overview of how you resolved this to help out other members who might run into this in the future? Thanks!


    ------------------------------
    Cheers,
    Danny
    ------------------------------



  • 4.  RE: Build Successful despite test cases getting failed in jenkins when using build.xml file

    Posted Jun 28, 2019 02:49 AM
    Hi Danny,

    Just add this at the end, this will mark the busild as failure if any test case fails.

    <fail if="test.failure"/>

    ------------------------------
    Thanks,
    AV
    ------------------------------