【发布时间】:2018-11-29 20:12:45
【问题描述】:
我在 github 上有一个项目,一些问题已经解决,它已经合并了 pullrequests。
我尝试通过在项目的根目录中添加 circleci 配置来将项目与 circleci 集成(我创建了一个新分支并推送它).circleci/config.yml:
version: 2
jobs:
build:
working_directory: ~/circleci
docker:
- image: circleci/openjdk:8-jdk
environment:
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "pom.xml" }}
- v1-dependencies-
- run: mvn dependency:go-offline
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "pom.xml" }}
- run: mvn test
我得到错误:
#!/bin/sh -eo pipefail
# No configuration was found in your project. Please refer to https://circleci.com/docs/2.0/ to get started with your configuration.
#
# -------
# Warning: This configuration was auto-generated to show you the message above.
# Don't rerun this job. Rerunning will have no effect.
false
Exited with code 1
它尝试在合并的 pullrequest 上运行作业。
如何通过我添加了 circleci 配置的新 pullrequest 使 circlecie 运行构建?
附言我尝试将 circleci 配置添加到我的主分支中 - 它没有帮助。
谢谢!
【问题讨论】:
标签: circleci-2.0