awslabs / aws-codepipeline-plugin-for-jenkins

Use this plugin to integrate your Jenkins project with a pipeline in AWS CodePipeline. For more information and step-by-step directions on how to install and configure this plugin, follow the Four Stage Pipeline Tutorial. http://docs.aws.amazon.com/codepipeline/latest/userguide/getting-started-4.html
Apache License 2.0
82 stars 69 forks source link

Exception with UTF-8 characters in filenames (Windows) #43

Open joshmahar-ts opened 4 years ago

joshmahar-ts commented 4 years ago

Getting the following exception when unpacking a ZIP file containing UTF-8 characters in some of the filenames. Removing those files form the ZIP resolves the error but we need to support special characters including æ and ø.

Jenkins 2.235.1/java11 on Windows Server 2019

[AWS CodePipeline Plugin] Detected compression type: Zip
[AWS CodePipeline Plugin] Successfully downloaded artifact from AWS CodePipeline
[AWS CodePipeline Plugin] Extracting 'C:\Program Files (x86)\Jenkins\workspace\windows-docker-build\DlwPl3Q.zip' to 'C:\Program Files (x86)\Jenkins\workspace\windows-docker-build'
[AWS CodePipeline Plugin] Failed to acquire artifacts: The system cannot find the file specified
[AWS CodePipeline Plugin] Stacktrace:
[AWS CodePipeline Plugin] java.base/java.io.WinNTFileSystem.canonicalize0(Native Method)
[AWS CodePipeline Plugin] java.base/java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:438)
[AWS CodePipeline Plugin] java.base/java.io.File.getCanonicalPath(File.java:620)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.ExtractionTools.getDestinationFile(ExtractionTools.java:113)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.ExtractionTools.extractZipFile(ExtractionTools.java:70)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.ExtractionTools.extractZip(ExtractionTools.java:46)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.ExtractionTools.decompressFile(ExtractionTools.java:180)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.DownloadCallable.downloadAndExtract(DownloadCallable.java:127)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.DownloadCallable.invoke(DownloadCallable.java:87)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.DownloadCallable.invoke(DownloadCallable.java:36)
[AWS CodePipeline Plugin] hudson.FilePath.act(FilePath.java:1075)
[AWS CodePipeline Plugin] hudson.FilePath.act(FilePath.java:1058)
[AWS CodePipeline Plugin] com.amazonaws.codepipeline.jenkinsplugin.AWSCodePipelineSCM.checkout(AWSCodePipelineSCM.java:237)
[AWS CodePipeline Plugin] hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
[AWS CodePipeline Plugin] hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
[AWS CodePipeline Plugin] jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
[AWS CodePipeline Plugin] hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
[AWS CodePipeline Plugin] hudson.model.Run.execute(Run.java:1880)
[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:428)