Comments (5)
是私有仓库嘛? 如果是的话需要配置 Git 仓库的访问权限,可以参考 https://flowci.github.io/#/cn/git/index
from flow-core-x.
@gy2006 想问下执行clone任务的是不是flowci/agent镜像,我进入镜像里面,把ssh key加进去了,在里面可以进行clone了,另外也在页面上添加了ssh key并且配置到了yaml中,同时把这个ssh key添加到了git 的ssh key中
from flow-core-x.
这个需要看一下你的 YAML 配置
如果在 Step 中没有配置镜像的话,就会在 flowci/agent 中执行
比如:就会在 Agent 上直接执行
steps:
- name: clone
plugin: 'gitclone'
allow_failure: false
如果在 Step 中配置了 Image,就会在配置的 Image 中执行,比如
steps:
- name: clone
docker:
image: flowci/debian-git
plugin: 'gitclone'
allow_failure: false
就会在 flowci/debian-git 中执行
from flow-core-x.
@gy2006 配置如下
#
# Maven Project Template
#
envs:
# Git config
FLOWCI_GIT_URL: "[email protected]:jarvan4dev/flyway-schema.git"
## Credential name if git repo url is ssh or login required for http
FLOWCI_GIT_CREDENTIAL: "thinkingdata"
docker:
image: "maven:3.6-jdk-8"
steps:
- name: clone
docker:
image: flowci/debian-git
plugin: 'gitclone'
allow_failure: false
- name: run unit test
envs:
MVN_CMD: "mvn clean test"
plugin: 'maven-runner'
- name: junit upload
plugin: "junit-report-uploader"
- name: jacoco upload
plugin: "jacoco-report-uploader"
- name: package
envs:
MVN_CMD: "mvn package -Dmaven.test.skip=true"
plugin: 'maven-runner'
- name: upload
envs:
artifact_pattern: "*.jar"
plugin: 'artifact-upload'
from flow-core-x.
用你的项目试了一下,可以 clone Gitee 的项目
Agent 是自己添加的嘛? 还是使用 flow.ci 默认的呢?
from flow-core-x.
Related Issues (20)
- FlowCI是不是没人维护了? HOT 1
- 启动报mysql root没有权限ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) HOT 18
- 自动化测试是测什么呢?
- 支持 sonar 或fireline 静态代码扫描的集成吗 HOT 1
- Can it support clone git url like: ssh://[email protected]/xxx.git HOT 3
- 创建工作流下一步按钮无响应 HOT 14
- k8s dynamic agents异常 HOT 1
- “NoSuchMethodErrors” due to multiple versions of com.google.guava:guava:jar HOT 1
- 作者是基于 jenkins 和 blue-ocean 做的二开吗 HOT 1
- 可以针对单个step手动启动不? HOT 6
- java.lang.Exception: No such property: FLOWCI_GIT_BRANCH for class: Script1 HOT 4
- Question: How to upload reports after failed step without allowing failures HOT 5
- Question: How to import secrets into steps safely HOT 5
- Question: How to add condition to entire flow HOT 1
- Question: How to backup config and flows from server HOT 2
- Facing `The plugin gitclone is not found` when trying to include in YAML HOT 1
- svn 是不是已经被放弃了?貌似没看到插件支持 HOT 1
- Create a plugin HOT 2
- 不支持iOS 打包吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flow-core-x.