projectkudu / kudu

Kudu is the engine behind git/hg deployments, WebJobs, and various other features in Azure Web Sites. It can also run outside of Azure.
Apache License 2.0
3.12k stars 655 forks source link

kuduscript DEPLOYMENT_TEMP output ÞPLOYMENT_TEMP% #3498

Closed jakeuj closed 5 months ago

jakeuj commented 9 months ago

Description

image

I use kuduscript to create powershell script by below command.

kuduscript -y --aspNetCore .\src\TestCiCd.HttpApi.Host\TestCiCd.HttpApi.Host.csproj -s .\TestCiCd.sln -t posh

image

Then I got the publish script below.

dotnet publish "$DEPLOYMENT_SOURCE\src/TestCiCd.HttpApi.Host/TestCiCd.HttpApi.Host.csproj" --output "%DEPLOYMENT_TEMP%" --configuration Release

Repo

When I excute this script, I will get the output in dir named "ÞPLOYMENT_TEMP%".

image

This ultimately results in an empty artifacts folder, and Azure App Service site will be nothing.

image

Reproduction Steps

kuduscript -y --aspNetCore .\src\TestCiCd.HttpApi.Host\TestCiCd.HttpApi.Host.csproj -s .\TestCiCd.sln -t posh

Expected behavior

dotnet publish output should to my temp folder like "c:\temp\__deploy_tmp\".

Actual behavior

dotnet publish output create a folder named "ÞPLOYMENT_TEMP%" in my project folder.

Known Workarounds

change "%DEPLOYMENT_TEMP%" to "$DEPLOYMENT_TEMP"

Version 1.0.17

Operation System Windows 11

Other information

Doc

jvano commented 5 months ago

Hi

If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure: https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

This way we can better track and assist you on this case

Thanks,

Joaquin Vano Azure App Service