Add archivation for comparePillars func
Related-Prod: PROD-28146 (PROD:28146)
Change-Id: I889d5e7363e260242abfbd3eb002e70c85866446
diff --git a/src/com/mirantis/mk/Common.groovy b/src/com/mirantis/mk/Common.groovy
index 1cb3d6e..3957b35 100644
--- a/src/com/mirantis/mk/Common.groovy
+++ b/src/com/mirantis/mk/Common.groovy
@@ -730,7 +730,9 @@
description += "<li><a href=\"${httpWS}/old/${item}/*view*/\">${item}</a></li>"
}
}
-
+ def cwd = sh(script: 'basename $(pwd)', returnStdout: true)
+ sh "tar -cf old_${cwd}.tar.gz old/ && rm -rf old/"
+ sh "tar -cf new_${cwd}.tar.gz new/ && rm -rf new/"
}
}