Compressing multi-stack scale job logs
Change-Id: I5b3f638e0c18a3be225e6bfab2a5443592aab197
diff --git a/jjb/pipeline/voltha/master/voltha-scale-multi-stack.groovy b/jjb/pipeline/voltha/master/voltha-scale-multi-stack.groovy
index 8f70b4e..e3d0710 100644
--- a/jjb/pipeline/voltha/master/voltha-scale-multi-stack.groovy
+++ b/jjb/pipeline/voltha/master/voltha-scale-multi-stack.groovy
@@ -210,6 +210,12 @@
fi
done
'''
+ // compressing the logs to save space on Jenkins
+ sh '''
+ cd $LOG_FOLDER
+ tar -czf logs.tar.gz *.log
+ rm *.log
+ '''
plot([
csvFileName: 'scale-test.csv',
csvSeries: [
@@ -350,7 +356,7 @@
python tests/scale/sizing.py -o $WORKSPACE/plots || true
fi
'''
- archiveArtifacts artifacts: 'kind-voltha/install-*.log,execution-time-*.txt,logs/**/*,RobotLogs/**/*,plots/*,etcd-metrics/*'
+ archiveArtifacts artifacts: 'kind-voltha/install-*.log,execution-time-*.txt,logs/**/*.txt,logs/**/*.tar.gz,RobotLogs/**/*,plots/*,etcd-metrics/*'
}
}
}