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

Deploy Azure function doesn't copy files with unix master and windows slave

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • azure-function-plugin
    • None
    • Windows 10 Pro, Docker, Linux master, Windows agent

    Description

      When using Git deploy, on windows agent, the plugin fails to copy any files to the azure deploy directory and deploys and empty function.

      This also applies to the azure-app-service-plugin, see JENKINS-62946

      It's also a bit weird why there are so many plugins (and duplicated code) that do very similar things rather than I plugin

      The problem is that in GitDeployCommand.copyAndAddFiles()  the list of files uses Windows slashes () but the sourceDir and repo dir uses unix style slashes  so FilePathUtils.trimDirectoryPrefix doesn't work correctly as sourceDir is in unix format and file is in Windows format.  I don't know anything about how jenkins handles this and I am a C# windows developer so I am at my limit just to get this far.  For now I am going to fix the slashes for my  case as a workaround.

      Attachments

        Activity

          devalok Devalok added a comment -

          Hi ,

          I am trying to deploy azure functions( built using NodeJs) and while deploying it shows 
          Your functionapp is using a custom image node|14. Assuming that the image contains the correct framework. Getting site publishing info... Creating archive for current directory... Uploading 210 B []Upload completed successfully.
          But I see nothing deployed in the function app in azure *...*can someone please help resolving the issue?

          devalok Devalok added a comment - Hi , I am trying to deploy azure functions( built using NodeJs) and while deploying it shows  Your functionapp is using a custom image node|14. Assuming that the image contains the correct framework. Getting site publishing info... Creating archive for current directory... Uploading 210 B []Upload completed successfully. But I see nothing deployed in the function app in azure *...*can someone please help resolving the issue?

          People

            azure_devops Azure DevOps
            kempus Tim Kemp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: