Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56966

Azure Deployment of .NET Package Folder has some files with 0 size

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • Jenkins (v2.150.1) master installed on Azure Linux VM. Jenkins Slave on Azure Windows 10 VM using Java Web Start

      We are building a .NET 4.5 Web API application using the declarative pipelines syntax to issue bat commands calling msbuild /t:clean, build, and package on a Windows 10 slave VM. 

      Package step creates a directory of publishable files at: ./obj/{config}/Package/PackageTmp

      Final step of the pipeline uses the azureWebAppPublish plugin to publish this directory to Azure Web Site. Publish step reports successful, but when looking at the wwwroot/bin folder on the published site, some DLLs have a 0 byte file size. For example, in the build server's PackageTmp folder, A.Library.DLL has file size 1124 KB, but after deploying via the plugin, A.Library.DLL has file size 0 bytes in Azure.

      Also noticed that the .azure-deploy GIT folder responsible for pushing the deploy files to Azure master contains some unstaged publish files after the pipeline has completed, one of which is the affected A.Library.DLL.

      Azure Web App Publish Step:

      azureWebAppPublish azureCredentialsId: params.azure_credential_id,					resourceGroup: params.resource_group, appName: params.service_name, sourceDirectory: "/obj/${params.build_mode}/Package/PackageTmp"

      x

       

          [JENKINS-56966] Azure Deployment of .NET Package Folder has some files with 0 size

          Josh Chiancone created issue -
          Josh Chiancone made changes -
          Description Original: We are building a .NET 4.5 application using the declarative pipelines yntax to issue bat commands calling msbuild /t:clean, build, and package on a Windows 10 slave VM. 

          Package step creates a directory of publishable files at: ./obj/\{config}/Package/PackageTmp

          Final step of the pipeline uses the azureWebAppPublish plugin to publish this directory to Azure Web Site. Publish step reports successful, but when looking at the wwwroot/bin folder on the published site, some DLLs have a 0 byte file size. For example, in the build server's PackageTmp folder, A.Library.DLL has file size 1124 KB, but after deploying via the plugin, A.Library.DLL has file size 0 bytes in Azure.

          Also noticed that the .azure-deploy folder contains some unstaged publish files after the pipeline has completed, one of which is the affected A.Library.DLL.

          Azure Web App Publish Step:
          {code:java}
          azureWebAppPublish azureCredentialsId: params.azure_credential_id, resourceGroup: params.resource_group, appName: params.service_name, sourceDirectory: "/obj/${params.build_mode}/Package/PackageTmp"{code}
          x

           
          New: We are building a .NET 4.5 Web API application using the declarative pipelines syntax to issue bat commands calling msbuild /t:clean, build, and package on a Windows 10 slave VM. 

          Package step creates a directory of publishable files at: ./obj/\{config}/Package/PackageTmp

          Final step of the pipeline uses the azureWebAppPublish plugin to publish this directory to Azure Web Site. Publish step reports successful, but when looking at the wwwroot/bin folder on the published site, some DLLs have a 0 byte file size. For example, in the build server's PackageTmp folder, A.Library.DLL has file size 1124 KB, but after deploying via the plugin, A.Library.DLL has file size 0 bytes in Azure.

          Also noticed that the .azure-deploy folder contains some unstaged publish files after the pipeline has completed, one of which is the affected A.Library.DLL.

          Azure Web App Publish Step:
          {code:java}
          azureWebAppPublish azureCredentialsId: params.azure_credential_id, resourceGroup: params.resource_group, appName: params.service_name, sourceDirectory: "/obj/${params.build_mode}/Package/PackageTmp"{code}
          x

           
          Josh Chiancone made changes -
          Description Original: We are building a .NET 4.5 Web API application using the declarative pipelines syntax to issue bat commands calling msbuild /t:clean, build, and package on a Windows 10 slave VM. 

          Package step creates a directory of publishable files at: ./obj/\{config}/Package/PackageTmp

          Final step of the pipeline uses the azureWebAppPublish plugin to publish this directory to Azure Web Site. Publish step reports successful, but when looking at the wwwroot/bin folder on the published site, some DLLs have a 0 byte file size. For example, in the build server's PackageTmp folder, A.Library.DLL has file size 1124 KB, but after deploying via the plugin, A.Library.DLL has file size 0 bytes in Azure.

          Also noticed that the .azure-deploy folder contains some unstaged publish files after the pipeline has completed, one of which is the affected A.Library.DLL.

          Azure Web App Publish Step:
          {code:java}
          azureWebAppPublish azureCredentialsId: params.azure_credential_id, resourceGroup: params.resource_group, appName: params.service_name, sourceDirectory: "/obj/${params.build_mode}/Package/PackageTmp"{code}
          x

           
          New: We are building a .NET 4.5 Web API application using the declarative pipelines syntax to issue bat commands calling msbuild /t:clean, build, and package on a Windows 10 slave VM. 

          Package step creates a directory of publishable files at: ./obj/\{config}/Package/PackageTmp

          Final step of the pipeline uses the azureWebAppPublish plugin to publish this directory to Azure Web Site. Publish step reports successful, but when looking at the wwwroot/bin folder on the published site, some DLLs have a 0 byte file size. For example, in the build server's PackageTmp folder, A.Library.DLL has file size 1124 KB, but after deploying via the plugin, A.Library.DLL has file size 0 bytes in Azure.

          Also noticed that the .azure-deploy GIT folder responsible for pushing the deploy files to Azure master contains some unstaged publish files after the pipeline has completed, one of which is the affected A.Library.DLL.

          Azure Web App Publish Step:
          {code:java}
          azureWebAppPublish azureCredentialsId: params.azure_credential_id, resourceGroup: params.resource_group, appName: params.service_name, sourceDirectory: "/obj/${params.build_mode}/Package/PackageTmp"{code}
          x

           
          Jie Shen made changes -
          Assignee Original: Azure DevOps [ azure_devops ] New: Jie Shen [ jieshe ]

          Jie Shen added a comment -

          Thanks for reporting this issue here. Does the build server have git installed? And its OS is windows, right?

          Jie Shen added a comment - Thanks for reporting this issue here. Does the build server have git installed? And its OS is windows, right?

          Yes, the worker VM is Windows 10 with msbuild 14 and Git installed (2.21.0.windows.1)

          Josh Chiancone added a comment - Yes, the worker VM is Windows 10 with msbuild 14 and Git installed (2.21.0.windows.1)
          Josh Chiancone made changes -
          Attachment New: image-2019-04-11-10-22-58-877.png [ 46693 ]

          Josh Chiancone added a comment - - edited

          I can provide sections of build logs or additional information, if you need specific information. I'd rather not attach the full pipeline log, though.

          Josh Chiancone added a comment - - edited I can provide sections of build logs or additional information, if you need specific information. I'd rather not attach the full pipeline log, though.
          Josh Chiancone made changes -
          Attachment Original: image-2019-04-11-10-22-58-877.png [ 46693 ]
          Josh Chiancone made changes -
          Attachment New: screenshot-1.png [ 46695 ]

            jieshe Jie Shen
            josh_zynbit Josh Chiancone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: