【问题标题】:Azure Databricks notebook not deployed via YAML deploynotebooks@0 taskAzure Databricks 笔记本未通过 YAML deploynotebooks@0 任务部署
【发布时间】:2021-09-14 13:14:32
【问题描述】:

这是我的 YAML。

未部署笔记本。管道成功运行,但未部署笔记本。我做错了什么?

【问题讨论】:

  • 在构建管道中能看到任何警告或异常日志信息吗?

标签: azure azure-devops azure-databricks


【解决方案1】:

您的notebooksFolderPath 似乎不正确 使用$(Pipeline.Workspace)$(Build.SourcesDirectory) 变量来获取笔记本

- task: deploynotebooks@0
  displayName: 'Deploy Databricks notebooks'
  inputs:
    notebooksFolderPath: '$(Pipeline.Workspace)/s/<path-to-notebooks-in-repository>'
    workspaceFolder: '/Shared'

- task: deploynotebooks@0
  displayName: 'Deploy Databricks notebooks'
  inputs:
    notebooksFolderPath: '$(Build.SourcesDirectory)/<path-to-notebooks-in-repository>'
    workspaceFolder: '/Shared'

这是构建代理的典型路径:

$(Build.SourcesDirectory) = /home/vsts/work/1/s
$(Build.BinariesDirectory) = /home/vsts/work/1/b
$(Pipeline.Workspace) = /home/vsts/work/1

【讨论】:

    猜你喜欢
    • 2022-07-27
    • 2022-01-20
    • 1970-01-01
    • 1970-01-01
    • 2020-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多