Skip to content

[JENKINS-8658] Jenkins 396 still uses $(user.home)/.hudson as default when ran using executable war (java -jar jenkins.war) #15586

Closed

Description

@jenkins-infra-bot

Afte moving my ~/.hudson to ~/.jenkins and starting jenkins using

java -jar jenkins.war

I've noticed jenkins 1.396 wasn't picking the new location.

Issue seems to come from http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.hudson/executable-war/1.17/Main.java#Main.getHomeDir%28%29

the getHomeDir is duplicated in the org.jvnet.hudson:executable-war Main class, causing winstone to extract the war before using the core/src/main/java/hudson/WebAppMain.java class


Originally reported by lacostej, imported from: Jenkins 396 still uses $(user.home)/.hudson as default when ran using executable war (java -jar jenkins.war)
  • status: Resolved
  • priority: Minor
  • component(s): core
  • resolution: Fixed
  • resolved: 2011-02-04T03:20:21+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-11-24
Raw content of original issue

Afte moving my ~/.hudson to ~/.jenkins and starting jenkins using

java -jar jenkins.war

I've noticed jenkins 1.396 wasn't picking the new location.

Issue seems to come from http://grepcode.com/file/repo1.maven.org/maven2/org.jvnet.hudson/executable-war/1.17/Main.java#Main.getHomeDir%28%29

the getHomeDir is duplicated in the org.jvnet.hudson:executable-war Main class, causing winstone to extract the war before using the core/src/main/java/hudson/WebAppMain.java class

1 attachment

Activity

  1. jenkins-infra-bot commented on Feb 3, 2011

    @jenkins-infra-bot
    Author
    btrim:
    • Original comment link
    • Raw content of original comment:

      accidentally clicked in progress, sorry

    accidentally clicked in progress, sorry

  2. jenkins-infra-bot commented on Feb 3, 2011

    @jenkins-infra-bot
    Author
    lacostej:
    • Original comment link
    • Raw content of original comment:

      I didn't find a git repo for the extras/executable-war. Here's the patch against SVN.

      Note that the patch contains:

      You may or you may not want to add all this debug code (I think it might help troubleshoot other people's installs.)

    I didn't find a git repo for the extras/executable-war. Here's the patch against SVN.

    Note that the patch contains:

    You may or you may not want to add all this debug code (I think it might help troubleshoot other people's installs.)

  3. jenkins-infra-bot commented on Feb 4, 2011

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original comment:

      Fixed in 1.397 thanks to lacostej

    Fixed in 1.397 thanks to lacostej

  4. jenkins-infra-bot commented on Feb 8, 2011

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Jerome Lacoste
    Path:
    core/src/main/java/hudson/WebAppMain.java
    http://jenkins-ci.org/commit/core/4f857bccb7b000fbc6067ad8f99c7ef04beba8fd
    Log:
    JENKINS-8658 let getHomeDir gather information about where it finds its location. Useful for troubleshooting.

  5. jenkins-infra-bot commented on Feb 8, 2011

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Jerome Lacoste
    Path:
    core/src/main/java/hudson/WebAppMain.java
    http://jenkins-ci.org/commit/core/42c0bdb7034af18809daa217664e9a6ec062ceab
    Log:
    JENKINS-8658 cleanup. Inner class can be static

  6. jenkins-infra-bot commented on Feb 8, 2011

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Jerome Lacoste
    Path:
    war/pom.xml
    http://jenkins-ci.org/commit/core/5150e710a8e744a4fcecb4b4ebffbda9ac53deb8
    Log:
    JENKINS-8658 depend on latest executable-war. This is where the fix should be. Note: of course one should release that dependency into a stable version

  7. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions