Revert "Multiply updates"
This reverts commit e052fbe45f5814f6cf1bdca70e69bd90a7a99673.
Change-Id: I0e14869604529cabc9548bfbecc31b3159b35a9b
diff --git a/packer-image-buid.groovy b/packer-image-buid.groovy
index b3d1dad..a87918f 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 .')
- def _files = findFiles(glob: "*${imageName}*.qcow2")
+ sh(script: 'find .', returnStdout: true)
+ def _files = findFiles(glob: "*qemu*/${imageName}*")
if (_files.size() > 1) {
common.warningMsg("Multiply artifacts detected!Only first one will be processed!")
} else if (_files.size() == 0) {