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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zip Deploy fails for branches other than master

sysadmin256 opened this issue · comments

I think this is similar to issue #3111 but the fix there isn't working for me. I have an Azure function app (built on PowerShell) that fails to deploy via DevOps Pipeline when deploying to a branch other than master.

ChangeSetId(Test) does not match 3305e1c221984b2692fb5e6fff91f60e, 'master' or 'HEAD'

I've found that if I use the 'Disconnect' option in the Azure portal -> Function app -> Deployment Center, then run the pipeline again it will succeed. The Deployment Center will then update to show it's connected but references the branch of master even though the deployment is from my 'Test' branch. See the picture below.

image

I checked c:\home\site\deployments\settings.xml and it does correctly reference the 'Test' branch.

Any help is appreciated!

One other thing I just noticed is when I click on the Deployment Center page, it shows the correct branch for 1-2 seconds like this:
image

then it switches back to this:
image

If I click the refresh button at the top or refresh the entire page, the same thing happens again where it shows the Test branch, then changes to master.

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