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
When the build-image task is run it fails because it can't find the Dockerfile in the copied source directory created by the build-app task. It seems by default (https://github.com/tektoncd/pipeline/blob/master/docs/tasks.md#outputs) the output is always in /workspace/output/source but when the git repo was cloned it was copied to / and that is the working directory
I modified the mvn-build task to clone to /workspace/output/source and run the maven build using that location as the working directory. Another workaround could have been to add a step to copy the directory
I also had to add an empty volume to get pass an "/.m2 doesn't exist" error
When the build-image task is run it fails because it can't find the Dockerfile in the copied source directory created by the build-app task. It seems by default (https://github.com/tektoncd/pipeline/blob/master/docs/tasks.md#outputs) the output is always in /workspace/output/source but when the git repo was cloned it was copied to / and that is the working directory
I modified the mvn-build task to clone to /workspace/output/source and run the maven build using that location as the working directory. Another workaround could have been to add a step to copy the directory
I also had to add an empty volume to get pass an "/.m2 doesn't exist" error
I can create a PR if you wish
The text was updated successfully, but these errors were encountered: