Cannot redeploy apps to repo, cli was working fine a day ago.
Description
Cannot redeploy apps to repo, cli was working fine a day ago.
Environment
- Plugin version - 1.3.0
- OS (macOS/Windows) - Windows
- SAP CF Landscape (e.g. Canary) -Canary
- IaaS provider (e.g. AWS) - AWS
- Region (e.g. eu10) - Frankfurt
CLI Output
Redeploying HTML5 applications in org XX/ space poc as XX... FAILED Could not delete zip file 'C:\Users\XX\AppData\Local\Temp\XX-1.0.0.zip' : remove C:\Users\XX\AppData\Local\Temp\XX-1.0.0.zip: The system cannot find the file specified.
Hi @rahuldeepattri , Thanks for reporting an issue.
The problem you are facing probably related to #14 and was fixed in v.1.3.0.
Another reason may be that you are attempting to push multiple applications with the same name and version. In this case HTML5 CLI plugin will zip those applications to the same archive and during deletion will try to delete it twice. This may happen, for example, if you have same xs-app.json and manifest.json files in webapp and dist directories of the same HTML5 module and running cf html5-push from directory containing both of them without specifying path. In this case plugin will try to "guess" which folders are application folders and will treat webapp and dist as two separate application folders and therefore will try to deploy both of them as separate applications...
What I propose you to do is the following:
- Check that you don't have
C:\Users\XX\AppData\Local\Temp\XX-1.0.0.zipand delete it if exists. - Run
cf html5-push <full_path_to_directory_that_contains_manifest.json>. If it's not the first time you deploy this application, you can also use-rflag to redeploy application using the sameapp-hostservice instance.