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

xunit - Custom Tool - Custom stylesheet - Global Property specified does not get resolved

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using the xUnit Custom Tool and specifying a Global Property (ex. ${XUNIT_RFT_TO_JUNIT} ) as the Custom stylesheet, the property does not get resolved. This makes the plugin look for a file named "${XUNIT_RFT_TO_JUNIT}" in the workspace directory. When is should be looking for the path specified in the Global Property
      Note: The Custom Tool Pattern accepts and resolves Global Properties just fine. (ex ${XUNIT_CUSTOM_XML} )

        Attachments

          Activity

          Hide
          bobtheshrew Eric Anker added a comment -

          Config screenshot & console screenshot

          Show
          bobtheshrew Eric Anker added a comment - Config screenshot & console screenshot
          Hide
          bobtheshrew Eric Anker added a comment -
          Show
          bobtheshrew Eric Anker added a comment - Suggested Fix Here: https://github.com/jenkinsci/xunit-plugin/pull/4
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: bobtheshrew
          Path:
          src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java
          http://jenkins-ci.org/commit/xunit-plugin/a7352df6dfb5b7e418fc2ea258c0ef1e6b67f689
          Log:
          Fix for JENKINS-17438

          Updated getXUnitToolInfoObject() to include:
           * BuildListener parameter
           * Use Util.replaceMacro() to expand CustomXSL string

          Updated performTests() call to getXUnitToolInfoObject() to include BuildListener parameter
           * Searched rest of the code, this seems to be the only call of getXUnitToolInfoObject()

          Addresses Bug: https://issues.jenkins-ci.org/browse/JENKINS-17438

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: bobtheshrew Path: src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java http://jenkins-ci.org/commit/xunit-plugin/a7352df6dfb5b7e418fc2ea258c0ef1e6b67f689 Log: Fix for JENKINS-17438 Updated getXUnitToolInfoObject() to include:  * BuildListener parameter  * Use Util.replaceMacro() to expand CustomXSL string Updated performTests() call to getXUnitToolInfoObject() to include BuildListener parameter  * Searched rest of the code, this seems to be the only call of getXUnitToolInfoObject() Addresses Bug: https://issues.jenkins-ci.org/browse/JENKINS-17438
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java
          http://jenkins-ci.org/commit/xunit-plugin/6f0d4a8a6445ac66a07325acc3e778f895e4b576
          Log:
          Merge pull request #4 from bobtheshrew/patch-1

          Fix for JENKINS-17438

          Compare: https://github.com/jenkinsci/xunit-plugin/compare/9bfb2611775b...6f0d4a8a6445

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java http://jenkins-ci.org/commit/xunit-plugin/6f0d4a8a6445ac66a07325acc3e778f895e4b576 Log: Merge pull request #4 from bobtheshrew/patch-1 Fix for JENKINS-17438 Compare: https://github.com/jenkinsci/xunit-plugin/compare/9bfb2611775b...6f0d4a8a6445
          Hide
          daniel_draganov Daniel Draganov added a comment - - edited

          I was able to reproduce the issue.
          Jenkins version 1.522
          I've tried to make it work with:

          • $JENKINS_HOME/userContent/xunit/junitConverter.xsl
          • fullPath to junitConverter.xsl
          • placing the file in the workspace path
          • placing the file in a relative to the workspace path
            but with no success.
          Show
          daniel_draganov Daniel Draganov added a comment - - edited I was able to reproduce the issue. Jenkins version 1.522 I've tried to make it work with: $JENKINS_HOME/userContent/xunit/junitConverter.xsl fullPath to junitConverter.xsl placing the file in the workspace path placing the file in a relative to the workspace path but with no success.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/xunit/XUnitProcessor.java
          src/main/java/org/jenkinsci/plugins/xunit/service/XUnitConversionService.java
          http://jenkins-ci.org/commit/xunit-plugin/9f47888800eb27ced24d0ea88de74fcf95960220
          Log:
          Fix JENKINS-17438

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/xunit/XUnitProcessor.java src/main/java/org/jenkinsci/plugins/xunit/service/XUnitConversionService.java http://jenkins-ci.org/commit/xunit-plugin/9f47888800eb27ced24d0ea88de74fcf95960220 Log: Fix JENKINS-17438

            People

            • Assignee:
              bobtheshrew Eric Anker
              Reporter:
              bobtheshrew Eric Anker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: