artifact file copy to root folder
Im new to a project and im pointed to get the e2e selenium runner working.
This project has dependences from the backend and the frontend.
and copied using Snapshot Dependencies.
Frontend:
dist => frontend
e2e => e2e
npm/*
Backend:
** => backend/
now is there a file (tsconfig.json) in the root folder of the frontend and must be copied to the root folder of the working directory. I'm unable to copy this successfully .
How can i copy a single file from the root working directory
Please sign in to leave a comment.
Hi Bram,
just to clarify terminology, Snapshot dependencies make builds depend on each other, this enforces order and makes bulids that are depended on be run or have a suitable one before the one defining the dependency can be run at all. To copy files, you should be using artifact dependencies.
Artifact dependencies support copying individual files just fine, and if you want to copy it into the root folder, you should be able to do something like "tsconfig.json", or "tsconfig.json => .". If you are setting up the Artifact dependency via the UI, you even have a small icon showing a folder tree that you can click to select files from the artifacts generated by a previous build.
Also it's important to keep in mind, that artifacts to be pulled have to be exposed by the original build. That is, even if the "tsconfig.json" is present at the end of the build, it will only be picked up as an artifact available for download or other builds if that build exposes that file in the "Artifact paths" configuration setting.
Hope this helps.
I tried adding 'tsconfig.json => .' No files matched for patterns "tsconfig.json"
I also looked in checking out only this file: "Note: checkout rules can only be set to directories, files are not supported."
Hi Bram,
for checkout rules yes, only directories are allowed, but for artifact dependencies this rule doesn't apply (they are handled quite differently).
As I mentioned in the last paragraph, please make sure that the origin build exports tsconfig.json as an artifact, otherwise you won't be able to pick it up.