Missing build folder with concourse cloud foundry resource

474 views Asked by At

I have a pipeline that the gets a repo (project-src) and does a build on the repo (project-src) folder.

The build creates another directory in the project-src folder. The problem is when I PUT that project-src folder using the cloud foundry resource the new folder is not pushed up. Here's my code:

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

Contents of 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

There are 1 answers

1
Josh Zarrabi On

As you said the put is in fact run in a separate container and the contents of project-src do need to be an output of the build task.