-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins ver. 2.63, lockable-resources-plugin 2.0
I created a new freestyle job that I configured to lock a resource by label and execute a windows batch.
I get following error:
[lockable-resources] acquired lock on [MSbuild_Robotic]
[EnvInject] - Loading node environment variables.
Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob
[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat
The parameter is incorrect
FATAL: command execution failed
java.io.IOException: CreateProcess error=87, The parameter is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
...<snip>
This does not happen if I configure it to lock the resource by name instead of label.
Maybe it is noteable that in this case I configured the resource in the way that it's name is identical to it's label.
- is related to
-
JENKINS-15339 Node Label Parameter plugin breaks Windows batch file build steps if Name field not filled in
-
- Closed
-
-
JENKINS-33159 Better handle environment with empty key on Windows
-
- Open
-
[JENKINS-45128] Locking resource by label breaks windows batch execution
Description |
Original:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: [lockable-resources] acquired lock on [MSbuild_Robotic] [EnvInject] - Loading node environment variables. Building remotely on windowsslave(ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob [work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat The parameter is incorrect FATAL: command execution failed [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException] : CreateProcess error=87, The parameter is incorrect at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:245) at hudson.Proc$LocalProc.<init>(Proc.java:214) at hudson.Launcher$LocalLauncher.launch(Launcher.java:846) at hudson.Launcher$ProcStarter.start(Launcher.java:384) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1195) at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1160) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Unknown Source) |
New:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. {{I get following error:}} {{ [lockable-resources] acquired lock on [MSbuild_Robotic]}} {{ [EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{ [work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ at java.lang.ProcessImpl.start(Unknown Source)}} {{ at java.lang.ProcessBuilder.start(Unknown Source)}} {{ at hudson.Proc$LocalProc.<init>(Proc.java:245)}} {{ at hudson.Proc$LocalProc.<init>(Proc.java:214)}} {{ at hudson.Launcher$LocalLauncher.launch(Launcher.java:846)}} {{ at hudson.Launcher$ProcStarter.start(Launcher.java:384)}} {{ at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1195)}} {{ at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1160)}} {{ at hudson.remoting.UserRequest.perform(UserRequest.java:121)}} {{ at hudson.remoting.UserRequest.perform(UserRequest.java:49)}} {{ at hudson.remoting.Request$2.run(Request.java:324)}} {{ at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)}} {{ at java.util.concurrent.FutureTask.run(Unknown Source)}} {{ at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)}} {{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)}} {{ at hudson.remoting.Engine$1$1.run(Engine.java:63)}} {{ at java.lang.Thread.run(Unknown Source)}} {{ }} |
Description |
Original:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. {{I get following error:}} {{ [lockable-resources] acquired lock on [MSbuild_Robotic]}} {{ [EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{ [work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ at java.lang.ProcessImpl.start(Unknown Source)}} {{ at java.lang.ProcessBuilder.start(Unknown Source)}} {{ at hudson.Proc$LocalProc.<init>(Proc.java:245)}} {{ at hudson.Proc$LocalProc.<init>(Proc.java:214)}} {{ at hudson.Launcher$LocalLauncher.launch(Launcher.java:846)}} {{ at hudson.Launcher$ProcStarter.start(Launcher.java:384)}} {{ at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1195)}} {{ at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1160)}} {{ at hudson.remoting.UserRequest.perform(UserRequest.java:121)}} {{ at hudson.remoting.UserRequest.perform(UserRequest.java:49)}} {{ at hudson.remoting.Request$2.run(Request.java:324)}} {{ at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)}} {{ at java.util.concurrent.FutureTask.run(Unknown Source)}} {{ at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)}} {{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)}} {{ at hudson.remoting.Engine$1$1.run(Engine.java:63)}} {{ at java.lang.Thread.run(Unknown Source)}} {{ }} |
New:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{ [EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{ [work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}}{{}} This does not happen if I configure it to lock the resource by name instead of label. In this case I configured the resource in the way that it's name is identical to it's label. |
Description |
Original:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{ [EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{ [work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}}{{}} This does not happen if I configure it to lock the resource by name instead of label. In this case I configured the resource in the way that it's name is identical to it's label. |
New:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{ [EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. In this case I configured the resource in the way that it's name is identical to it's label. |
Description |
Original:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{ [EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. In this case I configured the resource in the way that it's name is identical to it's label. |
New:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} [EnvInject] - Loading node environment variables. {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. In this case I configured the resource in the way that it's name is identical to it's label. |
Description |
Original:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} [EnvInject] - Loading node environment variables. {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. In this case I configured the resource in the way that it's name is identical to it's label. |
New:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{[EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. In this case I configured the resource in the way that it's name is identical to it's label. |
Description |
Original:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{[EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ [java.io.IOException|http://stacktrace.jenkins-ci.org/search?query=java.io.IOException]: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. In this case I configured the resource in the way that it's name is identical to it's label. |
New:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{[EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ java.io.IOException: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. Maybe it is noteable that in this case I configured the resource in the way that it's name is identical to it's label. |
Description |
Original:
I created a new freestyle job, configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{[EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ java.io.IOException: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. Maybe it is noteable that in this case I configured the resource in the way that it's name is identical to it's label. |
New:
I created a new freestyle job that I configured to lock a resource by label and execute a windows batch. I get following error: {{[lockable-resources] acquired lock on [MSbuild_Robotic]}} {{[EnvInject] - Loading node environment variables.}} {{ Building remotely on windowsslave (ctc codesonar windows) in workspace e:\jenkins\workspace\work_testjob}} {{[work_testjob] $ cmd /c call C:\Users\SAFETY~1\AppData\Local\Temp\hudson8046177881644065079.bat}} {{ The parameter is incorrect}} {{ FATAL: command execution failed}} {{ java.io.IOException: CreateProcess error=87, The parameter is incorrect}} {{ at java.lang.ProcessImpl.create(Native Method)}} {{ at java.lang.ProcessImpl.<init>(Unknown Source)}} {{ ...<snip>}} This does not happen if I configure it to lock the resource by name instead of label. Maybe it is noteable that in this case I configured the resource in the way that it's name is identical to it's label. |
Summary | Original: Locking resource by lable breaks windows batch execution | New: Locking resource by label breaks windows batch execution |
Environment | Original: Jenkins ver. 2.48, lockable-resources-plugin 2.0 | New: Jenkins ver. 2.63, lockable-resources-plugin 2.0 |