Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

file name is too long (tar.gz) #29

Open
Nadejde opened this issue Aug 7, 2017 · 1 comment
Open

file name is too long (tar.gz) #29

Nadejde opened this issue Aug 7, 2017 · 1 comment

Comments

@Nadejde
Copy link

Nadejde commented Aug 7, 2017

Hi,

We came across this problem in one of our builds. Quick fix was adding this line:

tarGzArchiveOutputStream.setLongFileMode(TarArchiveOutputStream.LONGFILE_GNU);

in compressTarGzFile function

[AWS CodePipeline Plugin] Publishing artifacts
[AWS CodePipeline Plugin] Compressing directory '[dir_name]' as a 'TarGz' archive
[AWS CodePipeline Plugin] file name '[file]' is too long ( > 100 bytes)
[AWS CodePipeline Plugin] Stacktrace:
[AWS CodePipeline Plugin] org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.handleLongName(TarArchiveOutputStream.java:687)
[AWS CodePipeline Plugin] org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.putArchiveEntry(TarArchiveOutputStream.java:280)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.CompressionTools.compressArchive(CompressionTools.java:163)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.CompressionTools.compressTarGzFile(CompressionTools.java:138)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.CompressionTools.compressFile(CompressionTools.java:72)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.PublisherCallable.uploadDirectory(PublisherCallable.java:142)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.PublisherCallable.invoke(PublisherCallable.java:108)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.PublisherCallable.invoke(PublisherCallable.java:38)
[AWS CodePipeline Plugin] hudson.FilePath.act(FilePath.java:998)
[AWS CodePipeline Plugin] hudson.FilePath.act(FilePath.java:976)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.AWSCodePipelinePublisher.callPublish(AWSCodePipelinePublisher.java:199)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.AWSCodePipelinePublisher.perform(AWSCodePipelinePublisher.java:161)
[AWS CodePipeline Plugin] hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
[AWS CodePipeline Plugin] hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:730)
[AWS CodePipeline Plugin] hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:676)
[AWS CodePipeline Plugin] hudson.model.Build$BuildExecution.post2(Build.java:186)
[AWS CodePipeline Plugin] hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:621)
[AWS CodePipeline Plugin] hudson.model.Run.execute(Run.java:1760)
[AWS CodePipeline Plugin] hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
[AWS CodePipeline Plugin] hudson.model.ResourceController.execute(ResourceController.java:97)
[AWS CodePipeline Plugin] hudson.model.Executor.run(Executor.java:415)
[AWS CodePipeline Plugin] 
@astrozzc
Copy link

astrozzc commented Aug 8, 2017

Thanks for the suggestion. It is very helpful! We will add this issue into our backlog and try to fix it soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants