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

Jenkins fails to compile newer updates of testNG if using the testNG method context.getFailedTests().removeResult(ITestResult)


    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • testng-plugin
    • None

      Per the summary, Jenkins will fail to compile java code (using jdk 1.7 or 1.8) that utilizes the testing method context.getFailedTests().removeResults(ITestResult r).

      In previous versions of testing (6.8.5 and back) this method only allowed for removing of ITestNGMethods, but recent updates have included removing ITestResults (http://grepcode.com/file/repo1.maven.org/maven2/org.testng/testng/6.8.8/org/testng/IResultMap.java#IResultMap.removeResult%28org.testng.ITestResult%29).

      I am able to perform this function when compiling through Eclipse, but it will fail to compile when running through Jenkins (even though Jenkins is pointed at the correct jdk).

            nullin Nalin Makar
            ajgwilli Andrew Gwilliam
            0 Vote for this issue
            2 Start watching this issue