jenkinsci / jenkinsci/agent-setup-plugin

[JENKINS-13963] Job executed on Slave node is using JAVA_HOME from Master

Open
#82 0 comments 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

After careful investigation, when "Windows Batch" job or "Execute Shell" executes on a slave node, the JAVA_HOME variable the job has set is the same as the Jankins Master node, even if the Slave node has it defined otherwise.

---
Originally reported by dcorbin, imported from: Job executed on Slave node is using JAVA_HOME from Master


  • assignee: kohsuke
  • status: Open
  • priority: Major
  • component(s): slave-setup-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 0
  • imported: 20251216-225446

Raw content of original issue

After careful investigation, when "Windows Batch" job or "Execute Shell" executes on a slave node, the JAVA_HOME variable the job has set is the same as the Jankins Master node, even if the Slave node has it defined otherwise.

  • environment: Jenkins 1.443 is running on Windows XP. A Jenkins slave node is running on Windows. I have a job that is designated to run only on the slave node.

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.