Class WindowsServiceLifecycle

    • Constructor Detail

      • WindowsServiceLifecycle

        public WindowsServiceLifecycle()
    • Method Detail

      • rewriteHudsonWar

        public void rewriteHudsonWar​(File by)
                              throws IOException
        On Windows, jenkins.war is locked, so we place a new version under a special name, which is picked up by the service wrapper upon restart.
        Overrides:
        rewriteHudsonWar in class Lifecycle
        Throws:
        IOException