Azure devops 从Azure DevOps管道部署的Java Azure函数表示成功,但未部署任何函数

Azure devops 从Azure DevOps管道部署的Java Azure函数表示成功,但未部署任何函数,azure-devops,azure-functions,Azure Devops,Azure Functions,我想创建部署JavaAzure函数的管道。管道作业表示成功(生成了1个工件。100%测试通过。上载了13个文件),但我看不到Azure Portal中部署的功能 请告诉我。我以教程为基础,但我使用的是Azure DevOps的Git Repo,而不是GitHub 我的可视化代码项目(解压缩)位于git/MyProject/FunctionsJava上/ Pom.xml位于(解压)/MyProject/FunctionsJava/Pom.xml 我的yml如下: trigger: - master

我想创建部署JavaAzure函数的管道。管道作业表示成功(生成了1个工件。100%测试通过。上载了13个文件),但我看不到Azure Portal中部署的功能

请告诉我。我以教程为基础,但我使用的是Azure DevOps的Git Repo,而不是GitHub

我的可视化代码项目(解压缩)位于git/MyProject/FunctionsJava上/ Pom.xml位于(解压)/MyProject/FunctionsJava/Pom.xml

我的yml如下:

trigger:
- master

pool:
  vmImage: 'ubuntu-latest'

# at the top of your YAML file 
# set some variables that you'll need when you deploy
variables:
# the name of the service connection that you created above
  serviceConnectionToAzure: connection-to-TestRG-rg
  # the name of your web app here is the same one you used above
  # when you created the web app using the Azure CLI
  appName: JavaFuncApp

# ...


steps:

   # ...
   # add these as the last steps
   # to deploy to your app service
   - task: CopyFiles@2
   displayName: Copy Files
   inputs:
    SourceFolder: $(system.defaultworkingdirectory)/MyProject/FunctionsJava/
    Contents: '**'
    TargetFolder: $(build.artifactstagingdirectory)   

- task: Maven@3
  inputs:
   mavenPomFile: '$(System.DefaultWorkingDirectory)/MyProject/FunctionsJava/pom.xml'
    mavenOptions: '-Xmx3072m'
    javaHomeOption: 'JDKVersion'
    jdkVersionOption: '1.8'
    jdkArchitectureOption: 'x64'
    publishJUnitResults: true
    testResultsFiles: '**/surefire-reports/TEST-*.xml'
    goals: 'package'

  - task: PublishBuildArtifacts@1
  displayName: Publish Artifact
  inputs:
   PathtoPublish: $(build.artifactstagingdirectory)    


- task: AzureWebApp@1
  inputs:
    azureSubscription: 'TestRG-Conn'
    appType: 'webApp'
    appName: '$(appName)'
    package:  $(build.artifactstagingdirectory)
    deploymentMethod: 'auto'

问题应该是由
appType:'webApp'
引起的,在
AzureWebApp
任务中,appType应该是
functionApp
。Web应用已部署到应用程序服务

您可以尝试Azure功能应用程序部署任务或任务

我现在更改了“appType:functionApp”。D:\home\site\wwwroot\src\main\java文件夹现在存在。但是有0个文件。在函数列表下我没有看到任何函数。谢谢你的帮助。
- task: AzureFunctionApp@1
  displayName: Azure Function App deploy
  inputs:
    azureSubscription: $(serviceConnectionToAzure)
    appType: functionApp
    appName: $(appName)
    package: $(build.artifactstagingdirectory)