[Jenkins ver. 2.190.1]
I am executing a windows batch command compressing my jenkins build to a zip file in the root of the Workspace
call C:\Windows\System32\WindowsPowerShell\v1.0\powershell Compress-Archive -Path “XXXX” -DestinationPath “xxxxxx.zip” -Force
I configured a Nexus Artifact Uploader to send the build to Nexus, however, I get a build error that the zip file can not be found
xxxxx.zip file doesn’t exist
FATAL: xxxxx.zip file doesn’t exist
sp.sd.nexusartifactuploader.NexusArtifactUploader.perform(NexusArtifactUploader.java:160)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1815)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
java.io.IOException: xxxxx.zip file doesn’t exist
at sp.sd.nexusartifactuploader.NexusArtifactUploader$1.call(NexusArtifactUploader.java:171)
at sp.sd.nexusartifactuploader.NexusArtifactUploader$1.call(NexusArtifactUploader.java:160)
Nexus artifact uploaded configuration