bitbucket-pipelines.yml 中的错误 [pipelines >步骤>健康)状况]。准确地说:至少需要一个条件

发布于 2025-01-12 04:34:05 字数 563 浏览 3 评论 0原文

我创建了一个如下所示的 bitbucket 管道:

pipelines:
  custom: 
    dbt-run:
      - step:
          name: 'Validate'
          script:
            - cd dbt_4flow
            - dbt compile
          condition:
            changesets:
            includePaths:
             - "dbt_4flow/*"  

但是,当我尝试通过 UI 运行它时,即使我已经给出了条件,我也会收到此错误。我做错了什么?是语法吗?

There is an error in your bitbucket-pipelines.yml at [pipelines > custom > dbt-run > 0 > step > condition]. To be precise: At least one condition is required 

I created a bitbucket pipelines that looks like this:

pipelines:
  custom: 
    dbt-run:
      - step:
          name: 'Validate'
          script:
            - cd dbt_4flow
            - dbt compile
          condition:
            changesets:
            includePaths:
             - "dbt_4flow/*"  

However, when I try to run it via the UI, I get this error even though I have already given a condition. What am I doing wrong? Is it the syntax?

There is an error in your bitbucket-pipelines.yml at [pipelines > custom > dbt-run > 0 > step > condition]. To be precise: At least one condition is required 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

狂之美人 2025-01-19 04:34:05

这可能是缩进问题。以下缩进应该有效。

pipelines:
  custom: 
    dbt-run:
      - step:
          name: 'Validate'
          script:
            - cd dbt_4flow
            - dbt compile
          condition:
            changesets:
              includePaths:
                - "dbt_4flow/*"  

It might be an indentation issue. The following indentation should work.

pipelines:
  custom: 
    dbt-run:
      - step:
          name: 'Validate'
          script:
            - cd dbt_4flow
            - dbt compile
          condition:
            changesets:
              includePaths:
                - "dbt_4flow/*"  
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文