Multiply updates
* Add simple post-processor,
for predictable qemu artifact naming
* install-recommends false for ubuntu16
* Fix zerofree for lvm based
Change-Id: Ic87d0c5e9472894714294a27d4aef797474138c6
diff --git a/packer-image-buid.groovy b/packer-image-buid.groovy
index a87918f..b3d1dad 100644
--- a/packer-image-buid.groovy
+++ b/packer-image-buid.groovy
@@ -237,8 +237,8 @@
// collect artifacts
// TODO make it possible, process multiply artifacts by one run.
dir('images/') {
- sh(script: 'find .', returnStdout: true)
- def _files = findFiles(glob: "*qemu*/${imageName}*")
+ sh(script: 'find .')
+ def _files = findFiles(glob: "*${imageName}*.qcow2")
if (_files.size() > 1) {
common.warningMsg("Multiply artifacts detected!Only first one will be processed!")
} else if (_files.size() == 0) {