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

gzip support for consoleText

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved (View Workflow)
    • Trivial
    • Resolution: Fixed
    • core
    • None

    Description

      There's a support for gzip log in case of console test shown in UI, but is missing in case of raw text (consoleText link) and fails with file not found exception. Add gzip support also for plain text.

      Attachments

        Issue Links

          Activity

            Code changed in jenkins
            User: Vojtech Juranek
            Path:
            core/src/main/java/hudson/model/Run.java
            http://jenkins-ci.org/commit/jenkins/af7159c8e796c44c2090137e17c4aa6a3fef5fed
            Log:
            JENKINS-10400 Added support for gzip log file also in case of raw text (consoleText link)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/jenkins/af7159c8e796c44c2090137e17c4aa6a3fef5fed Log: JENKINS-10400 Added support for gzip log file also in case of raw text (consoleText link)

            Code changed in jenkins
            User: Vojtech Juranek
            Path:
            changelog.html
            http://jenkins-ci.org/commit/jenkins/343d3ac722f5f400ccc35c0d5018c3092be25167
            Log:
            JENKINS-10400 Added changelog record

            Compare: https://github.com/jenkinsci/jenkins/compare/dcabd4b...343d3ac

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: changelog.html http://jenkins-ci.org/commit/jenkins/343d3ac722f5f400ccc35c0d5018c3092be25167 Log: JENKINS-10400 Added changelog record Compare: https://github.com/jenkinsci/jenkins/compare/dcabd4b...343d3ac

            Code changed in jenkins
            User: Vojtech Juranek
            Path:
            core/src/main/java/hudson/model/Run.java
            http://jenkins-ci.org/commit/jenkins/af7159c8e796c44c2090137e17c4aa6a3fef5fed
            Log:
            JENKINS-10400 Added support for gzip log file also in case of raw text (consoleText link)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/jenkins/af7159c8e796c44c2090137e17c4aa6a3fef5fed Log: JENKINS-10400 Added support for gzip log file also in case of raw text (consoleText link)

            Code changed in jenkins
            User: Vojtech Juranek
            Path:
            changelog.html
            http://jenkins-ci.org/commit/jenkins/343d3ac722f5f400ccc35c0d5018c3092be25167
            Log:
            JENKINS-10400 Added changelog record

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: changelog.html http://jenkins-ci.org/commit/jenkins/343d3ac722f5f400ccc35c0d5018c3092be25167 Log: JENKINS-10400 Added changelog record

            Code changed in jenkins
            User: Vojtech Juranek
            Path:
            core/src/main/java/hudson/model/Run.java
            http://jenkins-ci.org/commit/jenkins/af7159c8e796c44c2090137e17c4aa6a3fef5fed
            Log:
            JENKINS-10400 Added support for gzip log file also in case of raw text (consoleText link)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: core/src/main/java/hudson/model/Run.java http://jenkins-ci.org/commit/jenkins/af7159c8e796c44c2090137e17c4aa6a3fef5fed Log: JENKINS-10400 Added support for gzip log file also in case of raw text (consoleText link)

            Code changed in jenkins
            User: Vojtech Juranek
            Path:
            changelog.html
            http://jenkins-ci.org/commit/jenkins/343d3ac722f5f400ccc35c0d5018c3092be25167
            Log:
            JENKINS-10400 Added changelog record

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vojtech Juranek Path: changelog.html http://jenkins-ci.org/commit/jenkins/343d3ac722f5f400ccc35c0d5018c3092be25167 Log: JENKINS-10400 Added changelog record

            Code changed in jenkins
            User: Martin Schroeder
            Path:
            core/src/main/java/hudson/console/AnnotatedLargeText.java
            core/src/main/java/hudson/model/Run.java
            core/src/main/resources/hudson/model/Run/console.jelly
            http://jenkins-ci.org/commit/jenkins/346fc998b16f2021cbd6b3bb1cd1878a2b19ff5b
            Log:
            Enabled transparent compression support.

            This only works if the "transparent GZIP support" patch has been
            applied against Stapler. Otherwise, this patch will not compile
            as the new "LargeText" constructor will not be found.

            Additionally, the console.jelly was modified to make use of the
            stream instead of the raw file, which is necessary to get the
            correct uncompressed size of the file for skipping bytes.

            JENKINS-2551
            JENKINS-10400
            JENKINS-13655

            Signed-off-by: Martin Schroeder <martin.h.schroeder@intel.com>

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Martin Schroeder Path: core/src/main/java/hudson/console/AnnotatedLargeText.java core/src/main/java/hudson/model/Run.java core/src/main/resources/hudson/model/Run/console.jelly http://jenkins-ci.org/commit/jenkins/346fc998b16f2021cbd6b3bb1cd1878a2b19ff5b Log: Enabled transparent compression support. This only works if the "transparent GZIP support" patch has been applied against Stapler. Otherwise, this patch will not compile as the new "LargeText" constructor will not be found. Additionally, the console.jelly was modified to make use of the stream instead of the raw file, which is necessary to get the correct uncompressed size of the file for skipping bytes. JENKINS-2551 JENKINS-10400 JENKINS-13655 Signed-off-by: Martin Schroeder <martin.h.schroeder@intel.com>

            People

              vjuranek vjuranek
              vjuranek vjuranek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: