Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1732

Add ability to run Hudson JNLP in a headless env

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: other
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      It is not possible to run Hudson as a webstart app in a headless env.

        Attachments

          Activity

          Hide
          redsolo redsolo added a comment -

          Fixed in 1.218

          Show
          redsolo redsolo added a comment - Fixed in 1.218
          Hide
          basil3whitehouse basil3whitehouse added a comment -

          Instead of using a new system prop 'hudson.master.headless' could the standard
          'java.awt.headless' property be used? I know that's more specific to AWT and
          not necessarily obvious that it would affect hudson, but I tend to set that
          property for any app running on a server that I think may have a GUI or use the
          AWT/Swing libraries (like some graph generating libraries).

          Show
          basil3whitehouse basil3whitehouse added a comment - Instead of using a new system prop 'hudson.master.headless' could the standard 'java.awt.headless' property be used? I know that's more specific to AWT and not necessarily obvious that it would affect hudson, but I tend to set that property for any app running on a server that I think may have a GUI or use the AWT/Swing libraries (like some graph generating libraries).
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : redsolo
          Path:
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=9666
          Log:
          Changed webstart headless property to "hudson.webstart.headless" JENKINS-1732

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : redsolo Path: trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=9666 Log: Changed webstart headless property to "hudson.webstart.headless" JENKINS-1732
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : redsolo
          Path:
          trunk/hudson/main/jnlp-agent/src/main/java/hudson/jnlp/Main.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=9667
          Log:
          Changed webstart headless property to "hudson.webstart.headless" JENKINS-1732

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : redsolo Path: trunk/hudson/main/jnlp-agent/src/main/java/hudson/jnlp/Main.java http://fisheye4.cenqua.com/changelog/hudson/?cs=9667 Log: Changed webstart headless property to "hudson.webstart.headless" JENKINS-1732
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : redsolo
          Path:
          trunk/hudson/main/war/src/launcher/java/JNLPMain.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=9668
          Log:
          Changed webstart headless property to "hudson.webstart.headless" JENKINS-1732

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : redsolo Path: trunk/hudson/main/war/src/launcher/java/JNLPMain.java http://fisheye4.cenqua.com/changelog/hudson/?cs=9668 Log: Changed webstart headless property to "hudson.webstart.headless" JENKINS-1732
          Hide
          redsolo redsolo added a comment -

          Ive changed the property to "hudson.webstart.headless" as the property does not
          really affect the main Hudson server parts.

          For the "java.awt.headless" option, Hudson already sets the property to false at
          start up. So there is no need to set the "java.awt.headless" property when
          starting Hudson as a daemon.

          Show
          redsolo redsolo added a comment - Ive changed the property to "hudson.webstart.headless" as the property does not really affect the main Hudson server parts. For the "java.awt.headless" option, Hudson already sets the property to false at start up. So there is no need to set the "java.awt.headless" property when starting Hudson as a daemon.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          In more recent version of Hudson, a better way to do this is implemented.
          See http://hudson.gotdns.com/wiki/display/JENKINS/Distributed+builds

          Show
          kohsuke Kohsuke Kawaguchi added a comment - In more recent version of Hudson, a better way to do this is implemented. See http://hudson.gotdns.com/wiki/display/JENKINS/Distributed+builds

            People

            Assignee:
            redsolo redsolo
            Reporter:
            redsolo redsolo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: