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

Let restart jenkins.war in Windows through URL with the /safeRestart pattern

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Windows 7 and 10

      When Jenkins is started in Windows (either 7 or 10) through the jenkins.war file: 

      • java -jar jenkins.war --httpPort=9090

      Through a web browser the URL that works with the /safeRestart term
      does not work how is expected. Always appears the following message:

      • Jenkins cannot restart itself as currently configured.

      BTW, the URL with /safeRestart works fine in either Mac or Linux

      Furthermore, for example /safeExit works fine in all the OS

      For more details, read:

       * jenkins.war running - URL working with /safeRestart does not work in Windows

      Java used in these 3 OS is:

      > java --version
      openjdk 11.0.6 2020-01-14 LTS
      OpenJDK Runtime Environment Corretto-11.0.6.10.1 (build 11.0.6+10-LTS)
      OpenJDK 64-Bit Server VM Corretto-11.0.6.10.1 (build 11.0.6+10-LTS, mixed mode)
      

       
      Just wondered why the execution of jenkins.war file does not work in the same way in all the OS, practically is not portable in Windows
       

            Unassigned Unassigned
            manueljordan Manuel Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: