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

not able to disable the headless setting of Jenkins on windows OS

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: java-client-api
    • Labels:
      None
    • Environment:
      OS : Windows 2012 R2
      Jenkins version: Jenkins 2.190.1
      IE 11 browser
    • Similar Issues:

      Description

      Hi,

      i have installed Jenkins 2.190.1 on AWS machine of Windows 2012 R2 OS. Jenkins is running on port 8080. have configure project for cucumber test automation. The Test scripts are running but the browser is not visible. They are running at background means in headless mode. I want to execute my test script not in headless manner. For this, i tried to search how to set 'false' value for ' java.awt.headless ' but didn't get the setting on Windows machine.

      Also, i tried to stop the jenkins service and run the jenkins via command line mode. In this mode, able to observe the test script execution on IE 11 browser. But if i abort the execution then the jenkins gets terminated as shown in below log & screenshot and cucumber report is not generated. 

      Please let me know how to run Jenkins as service not in Headless mode i.e. 'java.awt.headless=false'

      CMD CONSOLE LOG:

      C:\Program Files (x86)\Jenkins>java -jar jenkins.war
      Running from: C:\Program Files (x86)\Jenkins\jenkins.war
      webroot: $user.home/.jenkins
      2020-01-07 08:09:34.592+0000 [id=1] INFO org.eclipse.jetty.util.log.Log#i
      nitialized: Logging initialized @448ms to org.eclipse.jetty.util.log.JavaUtilLog

      2020-01-07 08:09:34.732+0000 [id=1] INFO winstone.Logger#logInternal: Beg
      inning extraction from war file
      2020-01-07 08:09:34.768+0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#s
      etContextPath: Empty contextPath
      2020-01-07 08:09:34.831+0000 [id=1] INFO org.eclipse.jetty.server.Server#
      doStart: jetty-9.4.z-SNAPSHOT; built: 2019-05-02T00:04:53.875Z; git: e1bc35120a6
      617ee3df052294e433f3a25ce7097; jvm 1.8.0_40-b26
      2020-01-07 08:09:35.297+0000 [id=1] INFO o.e.j.w.StandardDescriptorProces
      sor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.Jetty
      JspServlet
      2020-01-07 08:09:35.345+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManage
      r#doStart: DefaultSessionIdManager workerName=node0
      2020-01-07 08:09:35.346+0000 [id=1] INFO o.e.j.s.s.DefaultSessionIdManage
      r#doStart: No SessionScavenger set, using defaults
      2020-01-07 08:09:35.357+0000 [id=1] INFO o.e.j.server.session.HouseKeeper
      #startScavenging: node0 Scavenging every 600000ms
      Jenkins home directory: C:\Users\Administrator\.jenkins found at: $user.home/.je
      nkins
      2020-01-07 08:09:35.937+0000 [id=1] INFO o.e.j.s.handler.ContextHandler#d
      oStart: Started w.@2235eaab

      {Jenkins v2.190.1,/,file:///C:/Users/Administrator/.j enkins/war/,AVAILABLE} {C:\Users\Administrator\.jenkins\war}

      2020-01-07 08:09:35.956+0000 [id=1] INFO o.e.j.server.AbstractConnector#d
      oStart: Started ServerConnector@1a407d53

      {HTTP/1.1,[http/1.1]} {0.0.0.0:8080}

      2020-01-07 08:09:35.957+0000 [id=1] INFO org.eclipse.jetty.server.Server#
      doStart: Started @1813ms
      2020-01-07 08:09:36.141+0000 [id=21] INFO winstone.Logger#logInternal: Win
      stone Servlet Engine v4.0 running: controlPort=disabled
      2020-01-07 08:09:37.480+0000 [id=27] INFO jenkins.InitReactorRunner$1#onAt
      tained: Started initialization
      2020-01-07 08:09:37.619+0000 [id=26] INFO jenkins.InitReactorRunner$1#onAt
      tained: Listed all plugins
      2020-01-07 08:09:40.244+0000 [id=26] INFO jenkins.InitReactorRunner$1#onAt
      tained: Prepared all plugins
      2020-01-07 08:09:40.256+0000 [id=26] INFO jenkins.InitReactorRunner$1#onAt
      tained: Started all plugins
      2020-01-07 08:09:40.328+0000 [id=26] INFO jenkins.InitReactorRunner$1#onAt
      tained: Augmented all extensions
      2020-01-07 08:09:41.146+0000 [id=27] INFO jenkins.InitReactorRunner$1#onAt
      tained: Loaded all jobs
      2020-01-07 08:09:41.470+0000 [id=42] INFO hudson.model.AsyncPeriodicWork$1
      #run: Started Download metadata
      2020-01-07 08:09:41.482+0000 [id=42] INFO hudson.model.AsyncPeriodicWork$1
      #run: Finished Download metadata. 9 ms
      2020-01-07 08:09:41.499+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAt
      tained: Completed initialization
      2020-01-07 08:09:41.550+0000 [id=20] INFO hudson.WebAppMain$3#run: Jenkins
      is fully up and running
      2020-01-07 08:09:56.228+0000 [id=17] INFO o.k.s.LocaleDrivenResourceProvid
      er#getLocaleDrivenResourceProviders: Registered LocaleDrivenResourceProvider: je
      nkins.MetaLocaleDrivenResourceProvider@59bbacc4

      C:\Program Files (x86)\Jenkins>

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              khmarbaise Karl-Heinz Marbaise
              Reporter:
              madurdprasad Dattaprasad Madur
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: