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

Support XML Context types

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Would be nice if we can enhance this plugin to support xml context type as well.

      Currently it throws the following exception when tried the context type as 'TEXT_XML'

      java.lang.IllegalArgumentException: No enum constant jenkins.plugins.http_request.MimeType.TEXT_XML
      	at java.lang.Enum.valueOf(Enum.java:238)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:382)
      

        Attachments

          Activity

          Show
          nrayapati Naresh Rayapati added a comment - Issued a pull request: https://github.com/jenkinsci/http-request-plugin/pull/25 CC: Janario Oliveira
          Hide
          nrayapati Naresh Rayapati added a comment -

          This could be achieved thorough customer headers, Janario Oliveira is planning to deprecate this field. 

          Tried it and was able to get this working by adding customer headers.

          customHeaders: [[name: 'Content-Type', value: 'text/xml']]
          
          Show
          nrayapati Naresh Rayapati added a comment - This could be achieved thorough customer headers, Janario Oliveira is planning to deprecate this field.  Tried it and was able to get this working by adding customer headers. customHeaders: [[name: 'Content-Type' , value: 'text/xml' ]]

            People

            Assignee:
            nrayapati Naresh Rayapati
            Reporter:
            nrayapati Naresh Rayapati
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: