This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      Currently the http request plugin supports writing response content to file in freeflow jobs, but not in pipeline jobs.

      The advised way is:

      def response = httpRequest "http://httpbin.org/response-headers?param1=${param1}"
      node() {
          writeFile file: 'response.txt', text: response.content
      }

      But writeFile currently ignores encoding. (https://issues.jenkins-ci.org/browse/JENKINS-27094)
      This makes writing binary files (e.g. those retrieved using https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RetrieveLatestArtifact) difficult. That is they can be written using wrong encoding.

            Assignee:
            Janario Oliveira
            Reporter:
            Grzegorz Pisarek
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: