java.io.IOException: Cannot run program "cmd" (in directory "C:\CI\Jenkins\workspace\test-py-install"): CreateProcess error=87, The parameter is incorrect

Jenkins JIRA | Alexey Trenikhin | 3 years ago
  1. 0

    Behavior seems node specific, we have old node and same job runs fine on this node with and without Install Custom Tools enabled, but on new node seems if Install Custom Tools is enabled in the project, then 'Execute Windows batch command' build step fails: [CustomTools] - Handle: Starting installation [CustomTools] - Handle: Label specifics from 'windows' will be applied [CustomTools] - Handle: Tool is installed at C:\CI\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\Handle [CustomTools] - Handle: Setting Handle_HOME=C:\CI\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\Handle [EnvInject] - Loading node environment variables. Building remotely on gimci-vm8 in workspace C:\CI\Jenkins\workspace\test-py-install [test-py-install] $ cmd /c call C:\Windows\TEMP\hudson4013721381829777457.bat The parameter is incorrect FATAL: command execution failed java.io.IOException: Cannot run program "cmd" (in directory "C:\CI\Jenkins\workspace\test-py-install"): CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(Unknown Source) ... at java.lang.Thread.run(Unknown Source) Caused by: 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) ... 16 more Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE

    Jenkins JIRA | 3 years ago | Alexey Trenikhin
    java.io.IOException: Cannot run program "cmd" (in directory "C:\CI\Jenkins\workspace\test-py-install"): CreateProcess error=87, The parameter is incorrect
  2. 0

    Behavior seems node specific, we have old node and same job runs fine on this node with and without Install Custom Tools enabled, but on new node seems if Install Custom Tools is enabled in the project, then 'Execute Windows batch command' build step fails: [CustomTools] - Handle: Starting installation [CustomTools] - Handle: Label specifics from 'windows' will be applied [CustomTools] - Handle: Tool is installed at C:\CI\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\Handle [CustomTools] - Handle: Setting Handle_HOME=C:\CI\Jenkins\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\Handle [EnvInject] - Loading node environment variables. Building remotely on gimci-vm8 in workspace C:\CI\Jenkins\workspace\test-py-install [test-py-install] $ cmd /c call C:\Windows\TEMP\hudson4013721381829777457.bat The parameter is incorrect FATAL: command execution failed java.io.IOException: Cannot run program "cmd" (in directory "C:\CI\Jenkins\workspace\test-py-install"): CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(Unknown Source) ... at java.lang.Thread.run(Unknown Source) Caused by: 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) ... 16 more Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE

    Jenkins JIRA | 3 years ago | Alexey Trenikhin
    java.io.IOException: Cannot run program "cmd" (in directory "C:\CI\Jenkins\workspace\test-py-install"): CreateProcess error=87, The parameter is incorrect
  3. 0

    weird java error

    GitHub | 3 years ago | crazyjoery
    java.io.IOException: Cannot run program "C:\Program Files (x86)\Java\jre7\bin\java" (in directory ".\instances\wom\minecraft"): CreateProcess error=267, The directory name is invalid
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    crash windows

    GitHub | 2 years ago | yoavst
    java.io.IOException: Cannot run program "ndisasm": CreateProcess error=2, The sy stem cannot find the file specified
  6. 0

    nodejs plugin for dalek on Jenkins configuration issues questions

    Stack Overflow | 2 years ago | chz
    java.io.IOException: Cannot run program "C:\Windows\TEMP\hudson1848754731046994976.js" (in directory "C:\jenkins\workspace\Test"): CreateProcess error=193, %1 is not a valid Win32 application

  1. eti22 1 times, last 1 month ago
  2. asdasd 24 times, last 3 months ago
  3. rexgreenza 8 times, last 3 months ago
  4. Benj-AD 1 times, last 4 months ago
  5. Akshay 4 times, last 6 months ago
95 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Cannot run program "cmd" (in directory "C:\CI\Jenkins\workspace\test-py-install"): CreateProcess error=87, The parameter is incorrect

    at java.lang.ProcessBuilder.start()
  2. Java RT
    ProcessBuilder.start
    1. java.lang.ProcessBuilder.start(Unknown Source)
    1 frame