首页 > 解决方案 > 特定文件更改的触发管道

问题描述

我正在尝试构建一个 CI/CD 管道,以便它仅在将新更改推送到分支中的特定文件时运行。更具体地说,如果将更改推送到 terraform/modulesterraform/environments/dev。如何包含 2 个条件?如果我这样做,是在暗示 OR 还是 AND?

condition:
              changesets:
                 includePaths:
                   - "terraform/modules*"
                   - "terraform/environments/dev"
pipelines:
  branches:
    master:
      - step:
          name: 'Navigate to Prod'
          script:
            - cd terraform/environments/prod
          condition:
            changesets:
              includePaths:
                - "terraform/modules"
                - "terraform/environments/dev"

我的意思是,当对terraform/modulesterraform/environments/dev进行更改时,它会运行吗

或者当其中任何一个发生更改时

标签: terraformbitbucketpipelinebitbucket-servercicd

解决方案


推荐阅读