Azure DevOps Databricks Pipeline Release 退出 [error]Bash exited with code '1'

Azure DevOps Databricks Pipeline Release exits with [error]Bash exited with code '1'

我的 Azure Devops 管道失败,[错误]Bash 退出,代码为“1”。

脚本如下:

databricks workspace mkdirs /build
databricks workspace import --language PYTHON --format SOURCE --overwrite _databricks-example-repo/notebook/$(notebook_name)-$(Build.SourceVersion).py /build/$(notebook_name)-$(Build.SourceVersion).py

完整的错误信息如下:

2019-10-16T10:41:42.2582015Z ========================== Starting Command Output ===========================
2019-10-16T10:41:42.2583038Z [command]"C:\Program Files\Git\bin\bash.exe" --noprofile --norc /d/a/_temp/89026089-f163-495a-92ea-285e19705127.sh
2019-10-16T10:41:42.7609581Z Error: InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering `C:\hostedtoolcache\windows\Python.7.4\x64\Scripts\databricks configure`
2019-10-16T10:41:43.1620919Z Error: InvalidConfigurationError: You haven't configured the CLI yet! Please configure by entering `C:\hostedtoolcache\windows\Python.7.4\x64\Scripts\databricks configure`
2019-10-16T10:41:43.1991465Z ##[error]Bash exited with code '1'.
2019-10-16T10:41:43.2007318Z ##[section]Finishing: Upload Notebook

任何想法

过去两天我一直在努力解决这个问题。我终于意识到问题是我输入了错误的令牌ID。我的建议是在配置​​系统时不要想当然。我 100% 确定令牌 ID 不是问题,但是当重新正确输入令牌 ID 时它起作用了。我对自己很不高兴。 无论如何感谢您的贡献