Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

[PROD] Deployment pipeline gives misleading error message #2511

Open
szabozoltan69 opened this issue Sep 28, 2022 · 2 comments
Open

[PROD] Deployment pipeline gives misleading error message #2511

szabozoltan69 opened this issue Sep 28, 2022 · 2 comments

Comments

@szabozoltan69
Copy link
Contributor

szabozoltan69 commented Sep 28, 2022

Issue

In case of compilation failure we can not see this fact, but the Azure pipelines says, that the "Replace env.js" step was failed (after the "Download frontend artifact").

We should change it to the relevant one, at least the 0 size artifact download should be not OK.

@szabozoltan69
Copy link
Contributor Author

@vdeak @MartonNagyATOS if you have any idea, please tell it.

@szabozoltan69
Copy link
Contributor Author

szabozoltan69 commented Sep 28, 2022

Error message was:

  | PowerShell exited with code '1'.
  | PowerShell wrote one or more lines to the standard error stream.
  | /usr/bin/cp: cannot stat '/home/vsts/work/1/frontend-1.0.0.87/1.0.0.87/1.0.0.87/assets/env.js': No such file or directory
  | Get-Content: /home/vsts/work/1/s/pipeline/frontend/replaceEnvJs.ps1:10 
Get-Content $filePathToReplace | ForEach-Object -Process {  
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Cannot find path | '/home/vsts/work/1/frontend-1.0.0.87/1.0.0.87/1.0.0.87/assets/env.Stage.js' because it does not exist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant