jenkinsci / jenkinsci/agent-setup-plugin

[JENKINS-69137] SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh

Open
#140 1 comment 0 reactions 0 assignees View on GitHub
component:slave-setup-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
11
Forks
23
Avg merge
21h 13m
Merged PRs (30d)
1

Description

SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh:

just before slave testW2019 gets launched ...

executing pre-launch scripts ...

$ sh -xe C:\Users\Jenkins\AppData\Local\Temp\jenkins4965045739906841359.sh

The system cannot find the file specified

ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins

java.io.IOException: CreateProcess error=2, The system cannot find the file specified

Should be platform-aware, and only use sh on unixes/macs, and cmd on Windows'.

---
Originally reported by vicd, imported from: SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh


  • assignee: peppe
  • status: Open
  • priority: Major
  • component(s): slave-setup-plugin
  • label(s): Windows, execution, jenkins, plugin, script
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251216-225446

Raw content of original issue

SlaveSetup plugin running on a Windows master attempts to execute the Start and Stop scripts with sh:

just before slave testW2019 gets launched ...
executing pre-launch scripts ...
$ sh -xe C:\Users\Jenkins\AppData\Local\Temp\jenkins4965045739906841359.sh
The system cannot find the file specified
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.io.IOException: CreateProcess error=2, The system cannot find the file specified

Should be platform-aware, and only use sh on unixes/macs, and cmd on Windows'.

environment

```
Windows 2019 Server, Jenkins 2.346.2, Slave SetupPlugin

Version1.10
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.