Azure / Azure/static-web-apps

Directory Location... is invalid. Could not detect this directory... Azure DevOps Release pipeline error.

Open
#552 4 comments 1 reaction 0 assignees View on GitHub
azure-devops
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Please advise, _Deploy Azure Static Web App_ task fails in Release pipeline with the following error message:
`
App Directory Location: '/home/vsts/work/r1/a/104' is invalid. Could not detect this directory. Please verify your deployment configuration file reflects your repository structure.
`
1. The static website files are ready for deployment in the following location: `$(System.DefaultWorkingDirectory)/$(Build.BuildId)`
2. Here is what the task looks like:
![image](https://user-images.githubusercontent.com/8905255/130121974-f9daf925-8567-476d-a17c-f35ddd46501e.png)
3. Log file:
````
2021-08-19T18:03:46.1394528Z Digest: sha256:1178ebb826c67e41e72ce54b9031160ab03f6ab9d55844293ca41c4f7ac28016
2021-08-19T18:03:46.1409859Z Status: Downloaded newer image for mcr.microsoft.com/appsvc/staticappsclient:stable
2021-08-19T18:03:46.5712069Z DeploymentId: 51ea21ce-de6a-4888-9d54-678b62830803
2021-08-19T18:03:46.5713542Z 
2021-08-19T18:03:46.6740985Z App Directory Location: '/home/vsts/work/r1/a/104' is invalid. Could not detect this directory. Please verify your deployment configuration file reflects your repository structure.
2021-08-19T18:03:47.2546781Z 
2021-08-19T18:03:47.2547637Z For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
2021-08-19T18:03:47.2548655Z If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
2021-08-19T18:03:47.2549259Z Exiting
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.