concourse - 大厅管道 - 子文件夹“不是有效的存储库名称”引发错误
问题描述
我有一个存储库,它有两个前端应用程序和一个服务器文件夹。我需要为两个前端(角度)和一个服务器(nodejs)文件夹创建管道。如果我为主文件夹(concourse-pipeline)创建一个管道,它工作正常。但是当我尝试为子文件夹(前端)创建管道时,它会抛出“不是有效的存储库名称”的错误。我不确定这里出了什么问题。
- 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
任何帮助,将不胜感激
解决方案
资源的似乎无效uri
。frontend
uri: git@github.com:test-repo/concourse-pipeline/frontend.git
Github 地址应该只有git@github.com:(user):(repository).git
推荐阅读
- linux - GREP 或 AWK 复杂模式匹配 (linux)
- c# - 如何在 Windows 服务中使用 .net.tcp 绑定托管两个 WCF 服务
- javascript - 此处为 javascript 的私人场所 api
- javascript - jQueryUI 自动完成在目标输入字段中显示值而不是标签
- java - 如何检查LinkedList中的数字是否按顺序排列
- unity3d - 如何统一验证文本网格专业输入字段文本
- java - java中的两个字符串区域比较
- ionic-framework - 如何在 Ionic3 中删除 Sqlite 数据库
- jquery - 将 Jquery 函数转换为 AngularJS
- python - 如果两个键值相同,如何对字典列表中的元素求和