Open MichaelPruefer opened 9 months ago
Im still getting this error on 0.243.1
Finishing: AzureStaticWebApp
I'm experiencing the same issue.
For future readers: I have worked around this issue by creating a new build agent running in Windows Subsystem for Linux (WSL) and then running the task there.
First install WSL by running PowerShell as administrator:
wsl --install
Now reboot your system and continue:
wsl --install -d Ubuntu
wsl --set-default Ubuntu
wsl
mkdir agent ; cd agent
wget https://vstsagentpackage.azureedge.net/agent/3.245.0/vsts-agent-linux-x64-3.245.0.tar.gz
tar zxvf ./vsts-agent-linux-x64-3.245.0.tar.gz && rm ./vsts-agent-linux-x64-3.245.0.tar.gz
./config.sh
./run.sh
Then, add in your azure-pipelines.yml
under the relevant job where you call AzureStaticWebApp@0
:
pool:
name: Default
demands:
- Agent.Name -equals AGENT_NAME
where AGENT_NAME
is the name you provided when running ./config.sh
Well, thats one way i guess, but this really needs to be fixed properly sonit just works with a basic install of the agent in windows.
Its not a lot to ask
How is this still an issue?
Starting: AzureStaticWebApp
==============================================================================
Task : Deploy Azure Static Web App
Description : [PREVIEW] Build and deploy an Azure Static Web App
Version : 0.247.1
Author : Microsoft Corporation
Help : https://aka.ms/swadocs
==============================================================================
##[error]Error: Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
##[warning]Unable to delete env file
Finishing: AzureStaticWebApp
Besides the requirement for Bash it also seems to require Docker. Why is that? We don't want the Docker client on our self-hosted Windows agents.
New issue checklist
Task name
AzureStaticWebApp@0
Task version
0.228.0
Issue Description
When running this task it throws:
Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
This running inside a release-pipeline and not inside a build-pipeline
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 10
Relevant log output
Full task logs with system.debug enabled
Repro steps