缺少使用大厅云代工资源的构建文件夹

时间:2016-12-22 22:18:46

标签: concourse

我有一个管道,它获取一个repo(project-src)并在repo(project-src)文件夹上构建。

构建在project-src文件夹中创建另一个目录。问题是,当我使用云代工资源投放project-src文件夹时,新文件夹不会被推高。这是我的代码:

resources:
- name: project-src
  type: git
  source:
    uri: {{uri}}
    branch: {{branch}}
    private_key: {{key}}

- name: deploy-cloud-foundry
  type: cf
  source:
    api: {{api}}
    username: {{username}}
    password: {{password}}
    organization: {{organization}}
    space: {{space}}

jobs:
- name: build-job
  plan:
  - get: project-src
  - task: build-it
    file: project-src/ci/tasks/build.yml
  - put: deploy-to-cf
    params:
      manifest: project-src/manifest.yml

build.yml的内容:

platform: linux

image_resource:
  type: docker-image
  source: {repository: dtest, tag: "2" }

inputs:
- name: project-src

run:
  path: ./ci/scripts/build.sh //this creates a folder in project-src
  dir: project-src

1 个答案:

答案 0 :(得分:1)

正如您所说,put实际上是在一个单独的容器中运行,而project-src的内容确实需要是构建任务的输出。