ASSET_1 gets outdated value when using openqa-clone-custom-git-refspec
When using openqa-clone-custom-git-refspec in order to clone a job, the value of ASSET_1 or any other ASSET get's the value from settings. But usually, the ASSET uploaded after the original job is run, gets another file name. For example, if ASSET_1=dev_tools.dud in settings, the original job will have uploaded ASSET_1=10931294-dev_tools.dud and the cloned job will fail because it cannot find dev_tools.dud with error:
[info] [#555] Downloading "dev_tools.dud" from "http://openqa.suse.de/tests/10932003/asset/other/dev_tools.dud"
[info] [#555] Download of "/var/lib/openqa/cache/openqa.suse.de/dev_tools.dud" failed: 404 Not Found
In order to have a successful cloning, ASSET_1 has to be manually set to ASSET_1=10931294-dev_tools.dud while typing the refspec command.
#openqa-clone-custom-git-refspec https://github.com/sofiasyria/os-autoinst-distri-opensuse/tree/master https://openqa.suse.de/tests/10931666 ASSET_1='10931294-dev_tools.dud'
It would be useful to automate the above process.