You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
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.
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:
serial: true
plan:
trigger: true
privileged: true
file: source-code/ci/tasks/package.yml
put: resource-deploy-web-app
resources:params:
manifest: source-code/manifest.yml
path: project-package
type: git
source:
uri: MY_GIT_RESOURCE
branch: master
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:
outputs:
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.
The text was updated successfully, but these errors were encountered: