Azure/static-web-apps-cli

"Could not find StaticSitesClient local binary" but apparently no attempt to download

JosXa opened this issue · 0 comments

Describe the bug
Locally, deployments are fine. As soon as the deploy step runs in our Jenkins CI (on a Docker Linux image), we get

[2024-09-23T15:29:19.284Z] 
[2024-09-23T15:29:19.284Z] Welcome to Azure Static Web Apps CLI (2.0.1)
[2024-09-23T15:29:19.284Z] 
[2024-09-23T15:29:19.284Z] Deploying front-end files from folder:
[2024-09-23T15:29:19.284Z]   /devel/jenkins/workspace/P1/remax-ui-deploy-web/apps/intune-ui/dist
[2024-09-23T15:29:19.285Z] 
[2024-09-23T15:29:19.285Z] Consider providing api-language and version using --api-language and --api-version flags,
[2024-09-23T15:29:19.285Z]     otherwise default values apiLanguage: node and apiVersion: 16 will apply
[2024-09-23T15:29:19.285Z] 
[2024-09-23T15:29:19.285Z] Deploying to environment: intune-ui
[2024-09-23T15:29:19.285Z] 
[2024-09-23T15:29:19.285Z] Deploying project to Azure Static Web Apps...
[2024-09-23T15:29:19.285Z] Could not find StaticSitesClient local binary
[2024-09-23T15:29:19.285Z] 
[2024-09-23T15:29:19.285Z]

It cannot find the StaticSitesClient binary and apparently also does not attempt to download it. Our firewall has been adjusted to allow the URLs denoted in the documentation through, but there is nothing else in the logs that would indicate what the problem is. Is there some kind of verbose mode we could enable to figure out what's going on?

Expected behavior
SWA CLI attempts to download the binary.

Desktop (please complete the following information):

  • OS: node:22.1.0-bookworm-slim (Docker)
  • Version: 2.0.1
  • Installed and ran via Yarn 4.x