Skip to content

[JENKINS-72881] "java -jar agent.jar -url" doesn't use current directory by default anymore #1499

@jenkins-infra-bot

Description

@jenkins-infra-bot

Jenkins 2.426.3 LTS

Remoting 3206.vb_15dcf73f6a_9

Jenkins Linux host to Windows agent where Jenkins not running as a service on agent

 

The command "java -jar agent.jar -url URL -name NAME -secret SECRET" gives a warning

WARNING: No Working Directory. Using the legacy JAR Cache location

 

The command "java -jar agent.jar -jnlpUrl URL/computer/NAME/jenkins-agent.jnlp -secret SECRET" does not give this warning


Originally reported by alexsch01, imported from: "java -jar agent.jar -url" doesn't use current directory by default anymore
  • assignee: jthompson
  • status: Open
  • priority: Minor
  • component(s): remoting
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-11-25
Raw content of original issue

Jenkins 2.426.3 LTS

Remoting 3206.vb_15dcf73f6a_9

Jenkins Linux host to Windows agent where Jenkins not running as a service on agent

 

The command "java -jar agent.jar -url URL -name NAME -secret SECRET" gives a warning

WARNING: No Working Directory. Using the legacy JAR Cache location

 

The command "java -jar agent.jar -jnlpUrl URL/computer/NAME/jenkins-agent.jnlp -secret SECRET" does not give this warning

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions