Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ConcourseCI:从get资源的映射/重命名输出运行任务_Concourse - Fatal编程技术网

ConcourseCI:从get资源的映射/重命名输出运行任务

ConcourseCI:从get资源的映射/重命名输出运行任务,concourse,Concourse,我有一个回购协议,我在每个回购协议中查看不同的文件夹并构建不同的东西 由于很多步骤都是类似的,所以我尝试稍微简化一些,并使用输出映射将dir“重命名”为一个公共名称,但它似乎不起作用。我只能得到一个错误:“未知工件源:repo” 我的管道是: resources: # I have more of these, one for each path I'm interested in but not shown here. - name: repo-folder--11.1--common t

我有一个回购协议,我在每个回购协议中查看不同的文件夹并构建不同的东西

由于很多步骤都是类似的,所以我尝试稍微简化一些,并使用输出映射将dir“重命名”为一个公共名称,但它似乎不起作用。我只能得到一个错误:“未知工件源:repo”

我的管道是:

resources:
# I have more of these, one for each path I'm interested in but not shown here.
- name: repo-folder--11.1--common
  type: git
  source:
    uri: git@github.com:myorg/project
    branch: concourse-pipeline
    private_key: {{github_private_key}}
    paths:
      - 11.1/common

jobs:
- name: common-image-build
  plan:
  - get: repo-folder--11.1--common
    output_mapping:
      repo-folder--11.1--common: repo
    trigger: true
  - get: centos-docker-image
  - task: generate-tag
    file: repo/task-generate-tag.yml
    params:
      prefix: "1.11-"
我希望我的
get
上的
output\u映射能够让我在这个构建计划中通过一个更简单的名称(“repo”)引用git repo,但它似乎没有


我是否缺少实现这一点的方法,或者这是一个错误/设计决策?

无需使用
输出映射
,resource
get
有自己的“重命名”方法,通过指定
资源

resources:
- name: repo-folder--11.1--common
  type: git
  source:
    uri: git@github.com:myorg/project
    branch: concourse-pipeline
    private_key: {{github_private_key}}
    paths:
      - 11.1/common

jobs:
- name: common-image-build
  plan:
  - get: repo
    resource: repo-folder--11.1--common
    trigger: true
  - get: centos-docker-image
  - task: generate-tag
    file: repo/task-generate-tag.yml
    params:
      prefix: "1.11-"