The following is a pipeline that attempts to use a
task step that references a
file that is within a resource. According to the
file documentation this should be possible.
For example, if in your plan you have the following
- get: something
somethingresource provided a
unit.ymlfile, you would set
An accurate example pipeline I’m working with:
resources: # This image contains a root directory at /tasks/ that contains .yml task files. - name: foo-tasks type: docker-image source: repository: org/foo-tasks tag: latest jobs: - name: extraction public: true plan: - get: foo-tasks - task: run-my-task file: foo-tasks/tasks/extract.yml # I even tried the following: # file: foo-tasks//tasks/extract.yml vars: url: "grumble://dorf.boo"
task config 'foo-tasks/tasks/extract.yml' not found
I’ve verified the the image does contain the task file.
I’ve tried putting in a debug task before it with
ls /tasks. This actually seems to indicate that the working directory becomes something like
/tmp/build/########, which would possibly explain why the file hasn’t be found.
Anyone have thoughts? What should I try next? Or better yet what am I doing wrong?
Thank you for taking the time to read this. I appreciate it.