【问题标题】:How to push for any branch in CircleCI?如何推动 CircleCI 中的任何分支?
【发布时间】:2017-01-05 22:10:06
【问题描述】:

我希望 CircleCI 为推送的 每个 分支部署。

文档 (https://circleci.com/docs/configuration/#deployment) 状态:

The branch field can also specify regular expressions, surrounded with / (e.g. /feature_.*/):

deployment:
  feature:
    branch: /feature_.*/
    commands:
      - ./deploy_feature.sh

我尝试过branch: /*/,但这似乎不起作用 - 我没有在任何分支上构建任何版本!

我也尝试删除 branch: 标记,但这会引发 must contain a branch or a tag 错误。

感谢您的任何想法/帮助, 最大

【问题讨论】:

    标签: circleci


    【解决方案1】:

    branch: /.*/ 似乎有效

    虽然我不知道为什么

    【讨论】:

    • 这是正则表达式。 .* 是任何字符的正则表达式。
    猜你喜欢
    • 2019-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-09
    • 1970-01-01
    • 2016-06-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多