So, what happens if you try to execute "C:\CMake28\bin -version" in a command prompt? Does it work? Does it work if you try it from a command prompt running as the jenkins user?
Isn't "bin" a funny name for an executable? I remember when names of Windows executables used to end in ".exe", but maybe they changed that... -- Sami mickeys kirjoitti 18.7.2012 kello 20.13: > Why do I get this? I have tried everything with adding users and grant them > access but I still get it. > Jenkins is running as a service and I have tried to change user there as well. > > > Started by user anonymous > > Building in workspace C:\Jenkins\jobs\myproject\workspace > MODULE: C:\Jenkins\jobs\myproject\workspace > Build dir : C:\buildDir > Source dir : C:\Jenkins\jobs\myproject\workspace\src > Install dir : C:\installDir > [Jenkins] $ C:\CMake28\bin -version > Access is denied > FATAL: Cannot run program "C:\CMake28\bin" (in directory "C:\Jenkins"): > CreateProcess error=5, Åtkomst nekad > > java.io.IOException > : Cannot run program "C:\CMake28\bin" (in directory "C:\Jenkins"): > CreateProcess error=5, Åtkomst nekad > at java.lang.ProcessBuilder.start(Unknown Source) > at hudson.Proc$LocalProc.<init>(Proc.java:244) > at hudson.Proc$LocalProc.<init>(Proc.java:216) > at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) > at hudson.Launcher.launch(Launcher.java:515) > at hudson.Launcher.launch(Launcher.java:447) > at hudson.Launcher.launch(Launcher.java:439) > at hudson.Launcher.launch(Launcher.java:373) > at hudson.plugins.cmake.CmakeBuilder.checkCmake(CmakeBuilder.java:272) > at > hudson.plugins.cmake.CmakeBuilder.prepareCmakeCall(CmakeBuilder.java:206) > at hudson.plugins.cmake.CmakeBuilder.perform(CmakeBuilder.java:177) > at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > at > hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) > at hudson.model.Build$BuildExecution.build(Build.java:199) > at hudson.model.Build$BuildExecution.doRun(Build.java:160) > at > hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) > at hudson.model.Run.execute(Run.java:1488) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > at hudson.model.ResourceController.execute(ResourceController.java:88) > at hudson.model.Executor.run(Executor.java:236) > Caused by: java.io.IOException: CreateProcess error=5, Åtkomst nekad > at java.lang.ProcessImpl.create(Native Method) > at java.lang.ProcessImpl.<init>(Unknown Source) > at java.lang.ProcessImpl.start(Unknown Source) > ... 20 more >