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

Drop the Claim not working with special Characters

      When you have a Test with special Characters in your Test results and you want to drop the claim the action will fail

       

      It will call this url:

      job/claim-repro/4/testReport/com.example.tests/XYZTestClass[MARKER]/testMethod/claim/unclaim.

      But I guess it should be:

      job/claim-repro/4/testReport/com.example.tests/XYZTestClass%5BMARKER%5D/testMethod/claim/unclaim

       

      with the special characters url encoded.

      You can use this pipeline for repo:

       

      pipeline {
       
       agent any
       
       post {
           always

      {          junit stdioRetention: '', testResults: 'result.xml'      }

       }
       
       stages {
          stage("Simulate test") {
              steps

      {             fileOperations([fileCreateOperation(fileContent: '<testsuites><testsuite name="TestSuite1" tests="1" failures="0" errors="0"><testcase classname="com.example.tests.XYZTestClass[MARKER]" name="testMethod" time="0.1"><failure message="Test failed" type="failure" /></testcase></testsuite></testsuites>', fileName: 'result.xml')])             }

          }
       }
      }

       

            greybird Arnaud TAMAILLON
            waschndolos Manuel Josch
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: