VOL-2567 Compress container logs

Change-Id: Ide7eeb97df345b683565419e9b13d8b154d89037
diff --git a/jjb/pipeline/voltha-bbsim-tests.groovy b/jjb/pipeline/voltha-bbsim-tests.groovy
index f6e8b27..c82501b 100644
--- a/jjb/pipeline/voltha-bbsim-tests.groovy
+++ b/jjb/pipeline/voltha-bbsim-tests.groovy
@@ -207,6 +207,8 @@
          extract_errors_python adapter-open-onu >> $WORKSPACE/error-report.log
          extract_errors_python voltha-ofagent >> $WORKSPACE/error-report.log
 
+         gzip $WORKSPACE/onos-voltha-combined.log
+
          ## shut down kind-voltha
          cd $WORKSPACE/kind-voltha
 	       WAIT_ON_DOWN=y ./voltha down
@@ -220,7 +222,7 @@
             passThreshold: 80,
             reportFileName: 'RobotLogs/report*.html',
             unstableThreshold: 0]);
-         archiveArtifacts artifacts: '*.log'
+         archiveArtifacts artifacts: '*.log,*.gz'
 
     }
   }
diff --git a/jjb/pipeline/voltha-go-multi-tests.groovy b/jjb/pipeline/voltha-go-multi-tests.groovy
index a167a29..c8886ff 100644
--- a/jjb/pipeline/voltha-go-multi-tests.groovy
+++ b/jjb/pipeline/voltha-go-multi-tests.groovy
@@ -130,6 +130,8 @@
          extract_errors_python adapter-open-onu >> $WORKSPACE/error-report.log
          extract_errors_python voltha-ofagent >> $WORKSPACE/error-report.log
 
+         gzip $WORKSPACE/onos-voltha-combined.log
+
          ## shut down voltha
          cd $WORKSPACE/kind-voltha/
          WAIT_ON_DOWN=y ./voltha down
@@ -143,7 +145,7 @@
             passThreshold: 100,
             reportFileName: 'RobotLogs/report*.html',
             unstableThreshold: 0]);
-         archiveArtifacts artifacts: '*.log'
+         archiveArtifacts artifacts: '*.log,*.gz'
 
     }
   }
diff --git a/jjb/pipeline/voltha-go-tests.groovy b/jjb/pipeline/voltha-go-tests.groovy
index d737988..e339fcc 100644
--- a/jjb/pipeline/voltha-go-tests.groovy
+++ b/jjb/pipeline/voltha-go-tests.groovy
@@ -125,6 +125,8 @@
          extract_errors_python adapter-open-onu >> $WORKSPACE/error-report.log
          extract_errors_python voltha-ofagent >> $WORKSPACE/error-report.log
 
+         gzip $WORKSPACE/onos-voltha-combined.log
+
          ## shut down voltha
          cd $WORKSPACE/kind-voltha/
          WAIT_ON_DOWN=y ./voltha down
@@ -138,7 +140,7 @@
             passThreshold: 100,
             reportFileName: 'RobotLogs/report*.html',
             unstableThreshold: 0]);
-         archiveArtifacts artifacts: '*.log'
+         archiveArtifacts artifacts: '*.log,*.gz'
 
     }
   }
diff --git a/jjb/pipeline/voltha-physical-build-and-tests.groovy b/jjb/pipeline/voltha-physical-build-and-tests.groovy
index b21c518..3f9eda8 100644
--- a/jjb/pipeline/voltha-physical-build-and-tests.groovy
+++ b/jjb/pipeline/voltha-physical-build-and-tests.groovy
@@ -347,6 +347,8 @@
       extract_errors_python adapter-open-onu >> $WORKSPACE/error-report.log
       extract_errors_python voltha-ofagent >> $WORKSPACE/error-report.log
 
+      gzip $WORKSPACE/onos-voltha-combined.log
+
       ## collect events, the chart should be running by now
       kubectl get pods | grep -i voltha-kafka-dump | grep -i running
       if [[ $? == 0 ]]; then
@@ -372,7 +374,7 @@
         passThreshold: 80,
         reportFileName: 'RobotLogs/report*.html',
         unstableThreshold: 0]);
-      archiveArtifacts artifacts: '*.log'
+      archiveArtifacts artifacts: '*.log,*.gz'
     }
   }
 }
diff --git a/jjb/pipeline/voltha-physical-functional-tests.groovy b/jjb/pipeline/voltha-physical-functional-tests.groovy
index f0e8743..5695c81 100644
--- a/jjb/pipeline/voltha-physical-functional-tests.groovy
+++ b/jjb/pipeline/voltha-physical-functional-tests.groovy
@@ -156,6 +156,9 @@
       extract_errors_go adapter-open-olt >> $WORKSPACE/error-report.log
       extract_errors_python adapter-open-onu >> $WORKSPACE/error-report.log
       extract_errors_python voltha-ofagent >> $WORKSPACE/error-report.log
+
+      gzip $WORKSPACE/*onos-voltha-combined.log
+
       '''
       script {
         deployment_config.olts.each { olt ->
@@ -175,7 +178,7 @@
         reportFileName: '**/report*.html',
         unstableThreshold: 0
         ]);
-      archiveArtifacts artifacts: '*.log'
+      archiveArtifacts artifacts: '*.log,*.gz'
     }
     unstable {
       step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${notificationEmail}", sendToIndividuals: false])