PHOENIX-6188 Jenkins job history uses too much storage (addendum: gzip txt artifacts)
diff --git a/dev/Jenkinsfile b/dev/Jenkinsfile
index 4a0f950..3bc9850 100644
--- a/dev/Jenkinsfile
+++ b/dev/Jenkinsfile
@@ -48,9 +48,10 @@
             }
             post {
                 always {
-                    archiveArtifacts artifacts: '**/target/surefire-reports/*.txt'
+                    sh 'find . -name \\*.txt -exec gzip {} \\;'
+                    archiveArtifacts artifacts: '**/target/surefire-reports/*.txt.gz'
                     archiveArtifacts artifacts: '**/target/surefire-reports/*.dumpstream'
-                    archiveArtifacts artifacts: '**/target/failsafe-reports/*.txt'
+                    archiveArtifacts artifacts: '**/target/failsafe-reports/*.txt.gz'
                     archiveArtifacts artifacts: '**/target/failsafe-reports/*.dumpstream'
                     junit '**/target/surefire-reports/TEST-*.xml'
                     junit '**/target/failsafe-reports/TEST-*.xml'
diff --git a/dev/Jenkinsfile.github b/dev/Jenkinsfile.github
index e11123e..d3f0853 100644
--- a/dev/Jenkinsfile.github
+++ b/dev/Jenkinsfile.github
@@ -122,8 +122,6 @@
                         always {
                             // Has to be relative to WORKSPACE.
                             junit testResults: "${WORKDIR_REL}/${PATCH_REL}/**/target/**/TEST-*.xml", allowEmptyResults: true
-                            archiveArtifacts artifacts: "${WORKDIR_REL}/${PATCH_REL}/*", excludes: "${WORKDIR_REL}/${PATCH_REL}/precommit"
-                            archiveArtifacts artifacts: "${WORKDIR_REL}/${PATCH_REL}/**/*", excludes: "${WORKDIR_REL}/${PATCH_REL}/precommit/**/*"
                             publishHTML target: [
                               allowMissing: true,
                               keepAll: true,
@@ -133,6 +131,9 @@
                               reportFiles: 'report.html',
                               reportName: 'PR General Check Report'
                             ]
+                            sh "find ${WORKDIR_REL}/${PATCH_REL}/output/ -type f -exec gzip {} \\;"
+                            archiveArtifacts artifacts: "${WORKDIR_REL}/${PATCH_REL}/*", excludes: "${WORKDIR_REL}/${PATCH_REL}/precommit"
+                            archiveArtifacts artifacts: "${WORKDIR_REL}/${PATCH_REL}/**/*", excludes: "${WORKDIR_REL}/${PATCH_REL}/precommit/**/*"
                         }
                         // Jenkins pipeline jobs fill slaves on PRs without this :(
                         cleanup() {