-
Bug
-
Resolution: Fixed
-
Major
-
None
-
windows
it is impossible for a windows developer to help fix/improve the windows packages without a Linux machine.
Attempting to use a pure local setup of cygwin + jenkins etc results in distfork being invoked with an archive to copy of /tmp/id/script.tgx.
Obviously this /tmp path is a cygwin path and bears no resemblance to any path that a windows process could hope to locate.
It should not be expected that a person who is an excellent Wix/Windows person should have to have a Linux machine as well to build only the windows package.
```
make WAR=../../../../wars/jenkins.war BRANDING=branding/test.mk CREDENTIALS=credentials/test.mk env/test.mk msi
<snip>
+ cp /cygdrive/c/workarea/source/jenkinsci/packaging_2/packaging/credentials/test.pkcs12.password.txt /tmp/6992/key.password
+ tar cvzf /tmp/6992/bundle.tgz -C ./msi FindJava.java build.sh jenkins.exe.config bootstrapper.xml -C /tmp/6992 jenkins.wxs key.pkcs12 key.password
FindJava.java
build.sh
jenkins.exe.config
bootstrapper.xml
jenkins.wxs
key.pkcs12
key.password
+ java -jar target/jenkins-cli.jar dist-fork -z /tmp/6992/bundle.tgz -f jenkinstest.war=../../../../wars/jenkins.war -l windows -F target/msi/jenkinstest-1.626
.zip=jenkinstest-windows.zip bash -ex build.sh jenkinstest.war 1.626 jenkinstest 'Jenkins Test' 7777
ERROR: Failed to execute a process
←[8mha:AAAAWB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=←[0mjava.io.IOException: Failed to extract input stream
at hudson.FilePath.readFromTar(FilePath.java:2297)
at hudson.FilePath.access$400(FilePath.java:191)
at hudson.FilePath$10.invoke(FilePath.java:719)
at hudson.FilePath$10.invoke(FilePath.java:717)
at hudson.FilePath.act(FilePath.java:989)
at hudson.FilePath.act(FilePath.java:967)
at hudson.FilePath.untarFrom(FilePath.java:717)
at hudson.plugins.distfork.DistForkCommand$1.run(DistForkCommand.java:134)
at hudson.plugins.distfork.DistForkTask$1.run(DistForkTask.java:74)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
Caused by: java.io.IOException: java.io.FileNotFoundException: \tmp\6992\bundle.tgz (The system cannot find the path specified)
at hudson.remoting.FastPipedInputStream.read(FastPipedInputStream.java:169)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
Makefile:39: recipe for target 'target/msi/jenkinstest-1.626.zip' failed
make: *** [target/msi/jenkinstest-1.626.zip] Error 127
```