Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accessing output jar file #53

Closed
hsine55 opened this issue Jul 19, 2016 · 1 comment
Closed

accessing output jar file #53

hsine55 opened this issue Jul 19, 2016 · 1 comment

Comments

@hsine55
Copy link

hsine55 commented Jul 19, 2016

Hi,
I'm configuring a simple concourse pipeline to build a spring-boot app with maven and then deploy it to pivotal cloudfoundry. The problem is, that when deploying to CF I am unable to access the jar builded during the execution of maven package. Here is the pipeline and tasks files.
Pipeline:
**jobs:

  • name: package-deploy
    serial: true
    plan:
    • get: source-code
      trigger: true
    • task: package
      privileged: true
      file: source-code/ci/tasks/package.yml
    • put: resource-deploy-web-app
      params:
      manifest: source-code/manifest.yml
      path: project-package

      resources:
  • name: source-code
    type: git
    source:
    uri: MY_GIT_RESOURCE
    branch: master
  • name: resource-deploy-web-app
    type: cf
    source:
    api: https://api.run.pivotal.io
    username: MY_USER_NAME
    password: MY_PASS
    organization: MY_ORG
    space: MY_SPACE
    skip_cert_check: true**

and the task yaml file:
**platform: linux

image_resource:
type: docker-image
source:
repository: nitram509/debian-openjdk8-maven-cmake-gcc
tag: latest

inputs:

  • name: source-code

outputs:

  • name: project-package

run:
path: mvn
args: ["-f", "source-code/pom.xml", "-DskipTests=true","-DoutputDirectory=project-package","package"]**

Here is the error message that pops when trying to PUT the jar file to the CF resource :
"error invalid path: found 0 files instead of 1 at path: /tmp/build/put/project-package/

I think there is some configuration that need to be done to be able to access the output of the package task during the PUT step but I couldn't find my way around it.
Thank you.

@mkb
Copy link
Contributor

mkb commented Dec 8, 2016

@hsine55 : Did you ever get this sorted?

You'll need to make sure your build is depositing the jar in the same place you've configured the cf resource to look for it. It's often useful to fly hijack into the task container to poke around and see where things are after the task runs.

The best place to get support for Concourse is the Concourse team on Slack you might also try opening GitHub issues for the Concourse project itself. This repo is actually just for the tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants