• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • http-request-plugin
    • None

      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.

          [JENKINS-37627] Allow writing response to file in pipeline

          Grzegorz Pisarek created issue -
          Grzegorz Pisarek made changes -
          Link New: This issue is related to JENKINS-27094 [ JENKINS-27094 ]
          Janario Oliveira made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Janario Oliveira made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          Janario Oliveira made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Janario Oliveira made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Allan Lewis made changes -
          Link New: This issue relates to JENKINS-63547 [ JENKINS-63547 ]

            janario Janario Oliveira
            pisu Grzegorz Pisarek
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: