-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins : 2.164.1
Jenkins Artifactory Plugin version: 3.2.1
Have 3 archives created on linux64, linux390 and Aix with suffix
*.tar.gz
They are on respective artifactory repository.
Using Jenkins Artifactory Plugin version: 3.2.1, able to download and extract the archive for linux64 and linux390.
However the archive for Aix, able to download BUT getting Error during
extracting.
00:05:27.193 ERROR: Can't extract file.
00:05:27.193 java.lang.RuntimeException: Can't extract file.
00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extractFile(ZipUtils.java:199)
00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extractFiles(ZipUtils.java:71)
00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extractFiles(ZipUtils.java:53)
00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extract(ZipUtils.java:40)
00:05:27.193 at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.explodeDependenciesIfNeeded(DependenciesDownloaderHelper.java:153)
00:05:27.193 at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:135)
00:05:27.193 at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:90)
00:05:27.193 at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.downloadArtifactsBySpec(SpecsHelper.java:142)
00:05:27.193 at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:48)
00:05:27.193 at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:20)
00:05:27.193 at hudson.FilePath.act(FilePath.java:1074)
00:05:27.193 at hudson.FilePath.act(FilePath.java:1057)
00:05:27.193 at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.setUp(ArtifactoryGenericConfigurator.java:305)
00:05:27.193 at hudson.model.Build$BuildExecution.doRun(Build.java:157)
00:05:27.193 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
00:05:27.193 at hudson.model.Run.execute(Run.java:1816)
00:05:27.193 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
00:05:27.193 at hudson.model.ResourceController.execute(ResourceController.java:97)
00:05:27.193 at hudson.model.Executor.run(Executor.java:429)
00:05:27.193 Caused by: java.io.FileNotFoundException: Invalid file path
00:05:27.193 at java.io.FileOutputStream.<init>(FileOutputStream.java:206)
00:05:27.193 at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extractFile(ZipUtils.java:186)
00:05:27.193 ... 18 more
_______________________________________
1. Check the workspace, the archive is located and can be manually extracted.
2. If the archive is in *.zip format there is no issue.
Jenkins : 2.164.1 Jenkins Artifactory Plugin version: 3.2.1 Have 3 archives created on linux64, linux390 and Aix with suffix *.tar.gz They are on respective artifactory repository. Using Jenkins Artifactory Plugin version: 3.2.1, able to download and extract the archive for linux64 and linux390. However the archive for Aix, able to download BUT getting Error during extracting. 00:05:27.193 ERROR: Can't extract file. 00:05:27.193 java.lang.RuntimeException: Can't extract file. 00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extractFile(ZipUtils.java:199) 00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extractFiles(ZipUtils.java:71) 00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extractFiles(ZipUtils.java:53) 00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extract(ZipUtils.java:40) 00:05:27.193 at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.explodeDependenciesIfNeeded(DependenciesDownloaderHelper.java:153) 00:05:27.193 at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:135) 00:05:27.193 at org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies(DependenciesDownloaderHelper.java:90) 00:05:27.193 at org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.downloadArtifactsBySpec(SpecsHelper.java:142) 00:05:27.193 at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:48) 00:05:27.193 at org.jfrog.hudson.generic.FilesResolverCallable.invoke(FilesResolverCallable.java:20) 00:05:27.193 at hudson.FilePath.act(FilePath.java:1074) 00:05:27.193 at hudson.FilePath.act(FilePath.java:1057) 00:05:27.193 at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator.setUp(ArtifactoryGenericConfigurator.java:305) 00:05:27.193 at hudson.model.Build$BuildExecution.doRun(Build.java:157) 00:05:27.193 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) 00:05:27.193 at hudson.model.Run.execute(Run.java:1816) 00:05:27.193 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 00:05:27.193 at hudson.model.ResourceController.execute(ResourceController.java:97) 00:05:27.193 at hudson.model.Executor.run(Executor.java:429) 00:05:27.193 Caused by: java.io.FileNotFoundException: Invalid file path 00:05:27.193 at java.io.FileOutputStream.<init>(FileOutputStream.java:206) 00:05:27.193 at java.io.FileOutputStream.<init>(FileOutputStream.java:162) 00:05:27.193 at org.jfrog.build.api.util.ZipUtils.extractFile(ZipUtils.java:186) 00:05:27.193 ... 18 more _______________________________________ 1. Check the workspace, the archive is located and can be manually extracted. 2. If the archive is in *.zip format there is no issue.
Further Information.
Looks like the problem of handling long file name on AIX?
It is ok with shorter archive filename .
00:02:02.988 Extracting Archive: /xxx/xxx/xxxxxxx/workspace/xx_xxxxx/xxxxxxxxxxx/xxxxxxxx_xxxx_xxxxxxxxxxx/froggy/xxx/xxx/xxx/aix/xxx/xxx_x-SNAPSHOT/xxx-xxx_x-SNAPSHOT.tar.gz
00:02:19.633 Finished extracting archive to /xxx/xxx/xxxxxxx/workspace/xx_xxxxx/xxxxxxxxxxx/xxxxxxxx_xxxx_xxxxxxxxxxx/froggy/xxx/xxx/xxx/aix/xxx/xxx_x-SNAPSHOT
00:00:09.231 Extracting Archive: /xxx/xxx/xxxxxxx/workspace/xx_xxxxx/xxxxxxxxxxx/xxxxxxxx_xxxx_xxxxxxxxxxx/froggy/xxx/xxx/xxx/aix/xxxxx-xxxx/xxx_b20_6e6c1326efb4227cd0dbe2d016b50c80c3787bd0-SNAPSHOT/xxxxx-xxxx-xxx_b20_6e6c1326efb4227cd0dbe2d016b50c80c3787bd0-SNAPSHOT.tar.gz
00:00:09.614 ERROR: Can't extract file.