I have one simple plan with one simple job.
Tasks:
In four steps, my utility generates a test report with screenshots. The report contain absolute links to images. (for example: onclick="window.open('./Screenshots/66ef3a03-8b82-4b40-b49d-b0155e273738.png');return false;"
).
If I open the report on my local machine, the report works fine, but on Bamboo I receive the error "Page Not Found", because Bamboo has not collected "Screenshots" folder.
How can I set up the Artifact Definition to collect folder with files?
P.S. I tried to set the \*.*
copy pattern, but Bamboo collected only files (without folders and subfolders)
Bamboo stores artifacts, build working and project directories in the home directory. There are some instances where users will be interested in having this stored outside of Bamboo or even in a network to preserve space on the build machine.
An artifact is defined in Bamboo by the use of an Ant Copy Pattern and a location relative to the top of the build directory. Many approaches can be used to select files to be included as an artifact so there are bound to be many ways to do this.
Bamboo uses the "Ant file copy pattern".
**/*
**/.*
) or the creation of an archive.*/*
foo/bar/test.xyz
foo/test.xyz
and bar/test.xyz
You can do more advanced matching; e.g. you can use build/**/*.jar
to copy all jars from a build directory.
For further info see the docs
You just have to give the folder Location, like "build/", for instance, and then, in the Copy Pattern you can put **/*.* That should copy all the files you want.
Please note that:
Plus, you can define as many Artifact Definitions as you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With