CircleCI config.yml

时间:2019-01-20 23:29:19

标签: job-scheduling circleci

我是Circleci的新手。 我的要求是我需要确保在特定分支(包含一些自动化方案)上触发并执行了构建。将config.yml(如下所述)推送到位桶时,我在circleci中发现错误。

配置不符合架构:{:workflows {:nightly {:jobs missing-required-key}}}

.yml文件如下:

version: 2

jobs:
 test_exec:
   docker:
     - image: maven:3.3-jdk-8
   steps:
     - checkout

     - run:
         name: Run test via maven
         command: mvn -Dtest=Runner test

workflows:
  version: 2

  nightly:
    triggers:
      - schedule:
          cron: "18 23 * * *"
          filters:
            branches:
              only:
                - AT-HomePage_Filters

有人可以帮助我解决此问题吗?

1 个答案:

答案 0 :(得分:0)

尝试以下操作:

version: 2

jobs:
 test_exec:
   docker:
     - image: maven:3.3-jdk-8
   steps:
     - checkout

     - run:
         name: Run test via maven
         command: mvn -Dtest=Runner test

nightly:
  triggers:
    - schedule:
        cron: "18 23 * * *"
        filters:
          branches:
            only:
              - AT-HomePage_Filters