Package publisher leaves a copy of the package in the artifacts folder (Bug #294)


Added by Paul Omta almost 4 years ago. Updated almost 3 years ago.


Status:Feedback Start date:08/01/2013
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Publisher Spent time: -
Target version:1.9
Affected version:1.8.4

Description

When an outputDir is defined, the package file is moved there, as expected.
However, unexpectedly, a copy of the .zip file is left behind in the artifact folder. Since we have quite large package files, our build server runs out of disk space faster than expected.

I've filed this as a bug, since I don't expect a copy to be left behind if an outputDir is set. Correct me if I'm wrong.


History

Updated by Ruben Willems almost 4 years ago

you mean the Artifact_Cleanup_Publisher does not clean this up?

Updated by Paul Omta almost 4 years ago

Indeed, it doesn't.
I have an artifact cleanup enabled and the .xml files in the buildlogs folder do get cleaned up nicely. But the .zip files get left behind.

Updated by Ruben Willems almost 4 years ago

  • Target version set to 1.8.5

Updated by Ruben Willems about 3 years ago

  • Target version changed from 1.8.5 to 1.9

Updated by Ruben Willems almost 3 years ago

You can always define multiple artifactcleanup publishers :

1<!-- cleaning buildlogs   -->
2 <artifactcleanup cleanUpMethod="KeepLastXBuilds" cleanUpValue="50" />
3
4<!-- cleaning the packages -->
5 <artifactcleanup cleanUpMethod="KeepLastXSubDirs" cleanUpValue="0" />

This solves the problem of the clean up :-)

It could be that the outDir provides an extra output folder, I do not know what the initial intent was.
It does sound logical that if outdir is specified, the package would be placed there.

I made a test run, and the zip file is placed there, but not the packages.xml file :-$
Is this another bug?
Also, the package zip file is copied to the output folder without any version information, so it will always be the package of the latest build.
Is this also the idea?

this needs some thinking over I guesss

  • Status changed from New to Feedback

Also available in: Atom PDF