首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >concourse pipeline -子文件夹的抛出错误“不是有效的存储库名称”

concourse pipeline -子文件夹的抛出错误“不是有效的存储库名称”
EN

Stack Overflow用户
提问于 2021-01-26 18:44:29
回答 1查看 34关注 0票数 0

我有存储库,其中有两个前端应用程序和一个服务器文件夹。我需要为两个前端(Angular)和一个服务器(Nodejs)文件夹创建管道。如果我为主文件夹(concourse- pipeline )创建了一个管道,它就能正常工作。但是当我尝试为子文件夹(前端)创建到管道时,它抛出了一个错误,即“不是有效的存储库名称”。我不知道这里出了什么问题。

代码语言:javascript
复制
  - name: repo
    type: git
    source:
      uri: git@github.com:test-repo/concourse-pipeline.git
      branch: master
      private_key: ((repo.private-key))

  - name: frontend
    type: git
    source:
      uri: git@github.com:test-repo/concourse-pipeline/frontend.git
      branch: master
      private_key: ((repo.private-key))

  - name: version
    type: semver
    source:
      driver: git
      initial_version: 0.0.1
      uri: git@github.com:test-repo/concourse-pipeline.git
      private_key: ((repo.private-key))
      branch: master
      file: version

  - name: run-server
    type: git
    source:
      uri: git@github.com:test-repo/concourse-pipeline.git
      branch: master
      private_key: ((repo.private-key))

jobs:
  - name: run-server
    build_logs_to_retain: 20
    max_in_flight: 1
    plan:
      - get: run-server
        trigger: true
      - task: run-tests
        config:
          platform: linux
          image_resource:
            type: registry-image
            source:
              repository: node
          inputs:
            - name: run-server
          run:
            path: /bin/sh
            args:
              - -c
              - |
                echo "Node Version: $(node --version)"
                echo "NPM Version: $(npm --version)"
                cd run-server
                npm install
                npm test

  - name: run-frontend
    build_logs_to_retain: 20
    max_in_flight: 1
    plan:
      - get: frontend
        trigger: true
      - task: run-tests
        config:
          platform: linux
          image_resource:
            type: registry-image
            source:
              repository: node
          inputs:
            - name: frontend
          run:
            path: /bin/sh
            args:
              - -c
              - |
                echo "Node Version: $(node --version)"
                echo "NPM Version: $(npm --version)"
                cd frontend
                npm install
                ng test

  - name: bump-version
    plan:
      - get: repo
        trigger: true
      - put: version
        params:
          bump: patch

  - name: build-repo
    plan:
      - get: repo
        trigger: true
      - get: version
        params:
          build: repo
          tag_file: version/version
          tag_as_latest: true

任何帮助都将不胜感激

EN

回答 1

Stack Overflow用户

发布于 2021-06-09 02:50:13

frontend资源的uri似乎无效。

代码语言:javascript
复制
uri: git@github.com:test-repo/concourse-pipeline/frontend.git

Github地址应仅为git@github.com:(user):(repository).git

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65899847

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档