Switching to winzip64 for artifact packaging?

Hello,

Is there a way to switch the artifact zipping process to use winzip64 (or another alternative) instead of regular winzip?

With the regular winzip32, if your artifacts have an individual file that is bigger than 4 gigs, you will get this error:

Error while creating archive MyArtifacts.zip: This archives contains unclosed entries.

And the artifacts will not be created.

Thanks.

6 comments
Comment actions Permalink

Hi,

Unfortunately it's not possible right now.
I've created an issue: http://youtrack.jetbrains.com/issue/TW-24375
Please watch for it. Is this feature critical for you?


--
Maxim

0
Comment actions Permalink

BTW there are at least two usages of the zip:
- when publishing artifacts;
- when downloading all artifacts as a zip.

I suppose you mean the first one, or am I wrong?


--
Maxim

0
Comment actions Permalink

Thanks for the reply -

Yes the error shows up when we are publishing artifacts.  Downloading big artifacts has no problems so far.

This feature is critical for us, as it is currently requiring is to do tedius workarounds that isn't nearly as scalable as having Teamcity take care of the zipping.  I've voted for the issue.

Thanks, please let us know if there are any updates.

0
Comment actions Permalink

OK, I'll try to integrate the fix to 7.1.x if possible.
If you're currently using 7.0.x, you'll be needing to upgrade to 7.1.

> Thanks, please let us know if there are any updates.
You've been added to the list of issue watchers, so you'll receive notifications about all changes.


--
Maxim

0
Comment actions Permalink

Delfino, it would be helpful if you post the full stacktrace (here or to the issue).

0
Comment actions Permalink

Hi Maxim:

This is in the build log in the web interface:
-------

[Creating archive MyArtifacts.zip] Error while creating archive MyArtifacts.zip: This archives contains unclosed entries.

[19:46:56]Failed to perform build finish stage jetbrains.buildServer.agent.impl.buildStages.finishStages.PublishArtifactsFStage. Error while creating archive MyArtifacts.zip: This archives contains unclosed entries.

[19:46:56]jetbrains.buildServer.agent.ArtifactPublishingFailedException: Error while creating archive MyArtifacts.zip: This archives contains unclosed entries.

-------

And this is in teamcity-agent.log on the agent:
------

[2012-11-07 22:13:44,353]   WARN -    jetbrains.buildServer.AGENT - Error while creating archive MyArtifacts.zip: This archives contains unclosed entries.
java.io.IOException: This archives contains unclosed entries.
 at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:413)
 at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.close(ZipArchiveOutputStream.java:806)
 at jetbrains.buildServer.agent.impl.artifacts.ZipPreprocessor.closeArchive(ZipPreprocessor.java:65)
 at jetbrains.buildServer.agent.impl.artifacts.ArchivePreprocessor.putFilesToArchive(ArchivePreprocessor.java:110)
 at jetbrains.buildServer.agent.impl.artifacts.ArchivePreprocessor.processArtifacts(ArchivePreprocessor.java:75)
 at jetbrains.buildServer.agent.impl.artifacts.ArtifactsBuilder.preprocessAndZip(ArtifactsBuilder.java:144)
 at jetbrains.buildServer.agent.impl.artifacts.ArtifactsBuilder.processArtifacts(ArtifactsBuilder.java:71)
 at jetbrains.buildServer.agent.impl.artifacts.ArtifactsBuilder.build(ArtifactsBuilder.java:52)
 at jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor.processArtifacts(ArtifactProcessor.java:99)
 at jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor.addNewArtifactsPath(ArtifactProcessor.java:67)
 at jetbrains.buildServer.agent.impl.buildStages.finishStages.PublishArtifactsFStage.doFinishStage(PublishArtifactsFStage.java:52)
 at jetbrains.buildServer.agent.impl.buildStages.BuildFinishStagesExecutor.runFinishStage(BuildFinishStagesExecutor.java:27)
 at jetbrains.buildServer.agent.impl.buildStages.BuildFinishStagesExecutor.doBuildFinishStages(BuildFinishStagesExecutor.java:20)
 at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:58)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:242)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:47)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:215)
 at java.lang.Thread.run(Unknown Source)
[2012-11-07 22:13:44,353]   INFO -    jetbrains.buildServer.AGENT - Done: Pre-processing artifacts if needed (archiving)
[2012-11-07 22:13:44,353]   INFO -    jetbrains.buildServer.AGENT - Publishing artifacts process finished
[2012-11-07 22:13:44,369]   WARN - ages.BuildFinishStagesExecutor - Failed to perform build finish stage jetbrains.buildServer.agent.impl.buildStages.finishStages.PublishArtifactsFStage. Error while creating archive MyArtifacts.zip: This archives contains unclosed entries.
jetbrains.buildServer.agent.ArtifactPublishingFailedException: Error while creating archive MyArtifacts.zip: This archives contains unclosed entries.
 at jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor.processArtifacts(ArtifactProcessor.java:102)
 at jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor.addNewArtifactsPath(ArtifactProcessor.java:67)
 at jetbrains.buildServer.agent.impl.buildStages.finishStages.PublishArtifactsFStage.doFinishStage(PublishArtifactsFStage.java:52)
 at jetbrains.buildServer.agent.impl.buildStages.BuildFinishStagesExecutor.runFinishStage(BuildFinishStagesExecutor.java:27)
 at jetbrains.buildServer.agent.impl.buildStages.BuildFinishStagesExecutor.doBuildFinishStages(BuildFinishStagesExecutor.java:20)
 at jetbrains.buildServer.agent.impl.BuildRunAction.runBuild(BuildRunAction.java:58)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:242)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:47)
 at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:215)
 at java.lang.Thread.run(Unknown Source)
[2012-11-07 22:13:44,384]   INFO -    jetbrains.buildServer.AGENT - Build finished: 31064



Thanks!
0

Please sign in to leave a comment.