Git Product home page Git Product logo

Comments (5)

gy2006 avatar gy2006 commented on June 10, 2024

是私有仓库嘛? 如果是的话需要配置 Git 仓库的访问权限,可以参考 https://flowci.github.io/#/cn/git/index

from flow-core-x.

xunyao4dev avatar xunyao4dev commented on June 10, 2024

@gy2006 想问下执行clone任务的是不是flowci/agent镜像,我进入镜像里面,把ssh key加进去了,在里面可以进行clone了,另外也在页面上添加了ssh key并且配置到了yaml中,同时把这个ssh key添加到了git 的ssh key中

from flow-core-x.

gy2006 avatar gy2006 commented on June 10, 2024

这个需要看一下你的 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.

xunyao4dev avatar xunyao4dev commented on June 10, 2024

@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.

gy2006 avatar gy2006 commented on June 10, 2024

用你的项目试了一下,可以 clone Gitee 的项目

Screenshot 2022-04-01 at 14 33 46

Agent 是自己添加的嘛? 还是使用 flow.ci 默认的呢?

from flow-core-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.