• Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • msbuild-plugin
    • None

      The PCT test MsBuildBuilderTest#configRoundtrip fails on Jenkins > 2.266 because of an old HtmlUnit with:
      {{}}

      com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function createHTMLDocument in object [object DOMImplementation]. (http://localhost:38087/jenkins/static/ad451fd8/jsbundles/vendors.js#25)          

       The real failure is swallowed by:

      Not valid configuration for MsBuild
      

      Because the AssertionError doesn't append the root cause:
       
      https://github.com/jenkinsci/msbuild-plugin/blob/f566e248dd59bfcbf3125f7eeda064da16b15c6b/src/test/java/hudson/plugins/msbuild/MsBuildBuilderTest.java#L57
       
      This ticket is to fix the PCT failure by upgrading dependencies to grab a newer HtmlUnit and to improve the assertions by adding the root cause.

          [JENKINS-64881] PCT compatibility with Jenkins 2.266

          Mark Waite added a comment -

          The master branch of the msbuild plugin is using parent pom 4.63 and a very recent version of HTMLUnit. mramonleon does that resolve the issue or are more changes needed?

          Mark Waite added a comment - The master branch of the msbuild plugin is using parent pom 4.63 and a very recent version of HTMLUnit. mramonleon does that resolve the issue or are more changes needed?

            mramonleon Ramon Leon
            mramonleon Ramon Leon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: