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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • azure-function-plugin
    • None
    • Windows 10 Pro, Docker, Linux master, Windows agent

      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.

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

              Created:
              Updated: