gpt4 book ai didi

bash - 如何解决 Yaml 语法错误 'did not find expected key' - Azure Devops

转载 作者:行者123 更新时间:2023-12-02 06:23:44 27 4
gpt4 key购买 nike

我不确定在 Azure devops 中创建的以下 yml 脚本有什么问题 - 该错误似乎与缩进有关,但我不确定它是什么。我对此进行了相当多的探索。

Yml

jobs:
- job: Test
displayName: 'Test Job'
pool:
name: 'macos-latest'
steps:
- bash: |
# Install AVD files
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-19;google_apis;x86'
echo "AVD system-image successfully downloaded and installed."
displayName: 'Download and install emulator image'

错误:

Encountered error(s) while parsing pipeline YAML:
/azure-pipelines.yml: (Line: 9, Col: 8, Idx: 150) - (Line: 10, Col: 70, Idx: 318): While parsing a block mapping, did not find expected key.

如果有人能指出这里的问题,我们将不胜感激。

最佳答案

# Install AVD files 注释的缩进已关闭。已修复:

jobs:
- job: Test
displayName: 'Test Job'
pool:
name: 'macos-latest'
steps:
- bash: |
# Install AVD files
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-19;google_apis;x86'
echo "AVD system-image successfully downloaded and installed."
displayName: 'Download and install emulator image'

关于bash - 如何解决 Yaml 语法错误 'did not find expected key' - Azure Devops,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73156748/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com