-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
Master: Windows Server 2012R2
Slave: Windows 7 Pro SP1
I try to build an installer for several projects on a slave machine. Sometimes the jobs get triggered by the workflowplugin, other times they are Freestyle projects.
The InstallShield plugin is configured to point to the right InstallShield installation on the slave and I restrict the jobs to only run on the correct slave.
However, when the build starts, the following console output happens:
Building remotely on InstallShield (InstallShield2014) in workspace C:\Buildjobs\workspace\Test_InstallShield-Blitz
> git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git.exe config remote.origin.url http://path/to/git/repo.git # timeout=10
Cleaning workspace
> git.exe rev-parse --verify HEAD # timeout=10
Resetting working tree
> git.exe reset --hard # timeout=10
> git.exe clean -fdx # timeout=10
Fetching upstream changes from http://path/to/git/repo.git
> git.exe --version # timeout=10
> git.exe -c core.askpass=true fetch --tags --progresshttp://path/to/git/repo.git +refs/heads/:refs/remotes/origin/
Seen branch in repository origin/master
Seen branch in repository origin/registry-backup
Seen 2 remote branches
Checking out Revision 6c368f2733bd951394e6dda27d136619a08116fa (origin/registry-backup)
> git.exe config core.sparsecheckout # timeout=10
> git.exe checkout -f 6c368f2733bd951394e6dda27d136619a08116fa
> git.exe rev-list 6c368f2733bd951394e6dda27d136619a08116fa # timeout=10
Executing command: "C:\Program Files (x86)\InstallShield\2014 SAB\System\IsCmdBld.exe" -p "C:\Buildjobs\workspace\Test_InstallShield-Blitz\Tests\InstallShield-Blitzpaket-Testsetup.ism"
ERROR: Build step failed with exception
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Jenkins\plugins\installshield\WEB-INF\lib\python\install_shield_builder.py", line 82, in perform
popen = subprocess.Popen(command, shell=False,
File "C:\Jenkins\plugins\python-wrapper\WEB-INF\lib\jython-standalone-2.5.3.jar\Lib\subprocess.py", line 751, in _init_
File "C:\Jenkins\plugins\python-wrapper\WEB-INF\lib\jython-standalone-2.5.3.jar\Lib\subprocess.py", line 1265, in _execute_child
OSError: Cannot run program ""C:\Program Files (x86)\InstallShield\2014 SAB\System\IsCmdBld.exe"" (in directory "C:\Jenkins"): CreateProcess error=2, The system cannot find the file specified
at org.python.core.PyException.doRaise(PyException.java:219)
at org.python.core.Py.makeException(Py.java:1239)
at org.python.core.Py.makeException(Py.java:1243)
at org.python.core.Py.makeException(Py.java:1247)
at subprocess$py._execute_child$36(C:\Jenkins\plugins\python-wrapper\WEB-INF\lib\jython-standalone-2.5.3.jar\Lib\subprocess.py:1266)
at subprocess$py.call_function(C:\Jenkins\plugins\python-wrapper\WEB-INF\lib\jython-standalone-2.5.3.jar\Lib\subprocess.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
at org.python.core.PyFunction._call_(PyFunction.java:387)
at org.python.core.PyMethod.instancemethod__call_(PyMethod.java:220)
at org.python.core.PyMethod._call_(PyMethod.java:211)
at org.python.core.PyMethod._call_(PyMethod.java:201)
at subprocess$py._init_$19(C:\Jenkins\plugins\python-wrapper\WEB-INF\lib\jython-standalone-2.5.3.jar\Lib\subprocess.py:840)
at subprocess$py.call_function(C:\Jenkins\plugins\python-wrapper\WEB-INF\lib\jython-standalone-2.5.3.jar\Lib\subprocess.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:194)
at org.python.core.PyFunction._call_(PyFunction.java:387)
at org.python.core.PyMethod.instancemethod__call_(PyMethod.java:220)
at org.python.core.PyMethod._call_(PyMethod.java:211)
at org.python.core.PyMethod._call_(PyMethod.java:206)
at org.python.core.Deriveds.dispatch_init_(Deriveds.java:19)
at org.python.core.PyObjectDerived.dispatch_init_(PyObjectDerived.java:1057)
at org.python.core.PyType.type__call_(PyType.java:1565)
at org.python.core.PyType._call_(PyType.java:1548)
at org.python.core.PyObject._call_(PyObject.java:320)
at org.python.pycode._pyx575.perform$3(C:\Jenkins\plugins\installshield\WEB-INF\lib\python\install_shield_builder.py:93)
at org.python.pycode._pyx575.call_function(C:\Jenkins\plugins\installshield\WEB-INF\lib\python\install_shield_builder.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:166)
at org.python.core.PyFunction._call_(PyFunction.java:338)
at org.python.pycode._pyx580.f$0(<string>:1)
at org.python.pycode._pyx580.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1275)
at org.python.core._builtin.eval(builtin_.java:484)
at org.python.core._builtin.eval(builtin_.java:488)
at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:190)
at jenkins.python.PythonExecutor.execPythonGeneric(PythonExecutor.java:190)
at jenkins.python.PythonExecutor.execPythonBool(PythonExecutor.java:218)
at jenkins.python.expoint.BuilderPW.perform(BuilderPW.java:98)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)
Build step 'Execute InstallShield builder' marked build as failure
I think this is coming from somewhere in your perform function in install_shield_builder.py. I can't really say anything about the Python script since I have no experience with Python, but it seems that the subprocess.Popen call has a parameter in both Python 2 and 3 that is called cwd and changes the working directory prior to calling the subprocess. Or maybe the working directory has to be set to the $WORKSPACE before even calling subprocess.Popen.