Having issue where allure attachments folder never clears and stacks attachments.
I want to have unique attachments each time a build is ran.
I tried creating a folder called output/and put all the images in there. But when I attempt to add them as attachments they dont exist and the folder is empty under "workspace"
I can successfully attach images from allure-report/data/attachments but need to clear it after each build without resetting the whole workspace. How can I just get images to attach uniquely from a output/ folder or from allure-report/data/attachments ?
Solution: Just need to install this plugin: https://plugins.jenkins.io/ws-cleanup/
Then add the workspace cleanup as a post build action.
Related
I'm writing a piece of software that maintains files in a Git repository.
One of the executables I've written has one simple purpose: delete everything to do with the software. It is given to the user in a separate, completely unrelated Windows folder.
One of the folders it needs to delete contains a Git repository, i.e. it contains a hidden .git folder
Now here's the problem I'm having. When I'm on the PC itself looking at the file system I can find that folder, click on it, delete it .... and it's gone. Not a problem.
So I try to do the same thing in my assembly by calling System.IO.Directory.Delete on that folder.
Here is what I am finding:
Everything is removed from the folder, but the folder itself is still there
When I try to THEN manually delete the folder from Windows Explorer it gives me some Unauthorised Access message. I cannot delete it.
The only way to actually get rid of it is to then try RENAME the folder in Windows Explorer, at which point I once again get an Unauthorized Access message but wouldn't you know it.... the folder disappears.
What gives!?!? Why does a System.IO.Directory.Delete NOT do exactly the same thing as me going in through Windows Explorer and deleting the folder manually?
I have tried a number of things. For example I tried getting all the files in the directory and setting all their Attributes to Normal, and through all the folders and setting their Attributes to Directory And Not Hidden. Still no joy. I even tried using Process.Start to run a RMDIR folder /S /Q - which runs perfectly from a .bat file - but the same thing happens.
I do have TortoiseGit and all its dependencies installed in case that has anything to do with anything.... and the folder does have the green Tick on it to indicate that its content is all up to date.
So my question is:
Is there any way I can successfully delete a folder containing a Git repository though VB.NET?
I finally got to the bottom of this mysterious mystery.
The culprit is TortoiseGit
When I killed the TGitCache.exe process just before deleting the folder, everything worked perfectly.
Go figure.
I have a folder containing image files in wwwroot/images. Web Publish has stopped deploying them.
They're added to the project. They're in source control. But the build has stopped deploying them. Not happened before.
How do I make this software do what it's supposed to do?
The project file had accumulated some junk. For example, it had an odd selection of files as 'Content' and it was removing the images and adding them back not as content.
I deleted all of it. Mwahahaha.
I have created build definition which runs successfully. Now I want to create a release definition on the successful build, for which it is asking for artifacts.
When I tried browsing "Drop" folder, I found it empty.
Below are the images from Copy Files step and Publish build artifacts step.
I also tried instructions from The item MY_ARTIFACT_NAME in container XXX could not be found
But no luck. Please help.
I believe that you should use $(build.sourcesdirectory) (or a path relative to) as the source folder if you want to copy files which are not checked in.
Also, from the documentation of the Copy Files step
The pattern is used to match only file paths, not folder paths. So you should specify patterns such as **\bin\** instead of of **\bin.
Try changing the contents pattern to **\bin\** and see if that helps.
I am trying to clone a Bitbucket repository that already contains folders & files in it, using Sourcetree.
When I try and do this, I get a message saying that I need to use an empty or new folder.
Is there a way to achieve this seemingly simple task?
message saying that I need to use an empty or new folder
... as destination of clone operation, regardless of the original repository at Bitbucket's side
The error message is referring to your destination folder, not the source. Just create a new empty destination folder and point to that. The source folder should contain an existing project.
Also, make sure you do this on the "Clone Repository" tab.
just starting at play, and I needed to see it it can be used to do my project.
But after reading some docs, I still can't find a way to put uploaded files in more then one place.
I know that there is the attachments folder, and that I can change it directory in the confs, but what I want is another attachments folder, some thing like:
If the user upload a photo it would go to /photos folder;
if the user upload a txt it would go to /docs fodler;
Thanks
--UPDATE--
I'm using Play 2.0.1
So after some more research I found this other question:
How can I change uploaded files directory in play 2.0.1?
Basically there is no more attachments path configure in this playframework version, so I need to put this manually in the control, just like the answer in that question.