提交 08a993d7 编写于 作者: O Oleg Nenashev

[JENKINS-32820] Fix the last merge issues

上级 579a88d6
...@@ -40,7 +40,7 @@ public class SolarisSMFLifecycle extends Lifecycle { ...@@ -40,7 +40,7 @@ public class SolarisSMFLifecycle extends Lifecycle {
*/ */
@Override @Override
public void restart() throws IOException, InterruptedException { public void restart() throws IOException, InterruptedException {
Jenkins h = Jenkins.getInstanceOrNull(); // guard against repeated concurrent calls to restart Jenkins jenkins = Jenkins.getInstanceOrNull(); // guard against repeated concurrent calls to restart
try { try {
if (jenkins != null) { if (jenkins != null) {
jenkins.cleanUp(); jenkins.cleanUp();
......
...@@ -67,7 +67,7 @@ public class UnixLifecycle extends Lifecycle { ...@@ -67,7 +67,7 @@ public class UnixLifecycle extends Lifecycle {
@Override @Override
public void restart() throws IOException, InterruptedException { public void restart() throws IOException, InterruptedException {
Jenkins h = Jenkins.getInstanceOrNull(); // guard against repeated concurrent calls to restart Jenkins jenkins = Jenkins.getInstanceOrNull(); // guard against repeated concurrent calls to restart
try { try {
if (jenkins != null) { if (jenkins != null) {
jenkins.cleanUp(); jenkins.cleanUp();
......
...@@ -117,7 +117,7 @@ public class WindowsServiceLifecycle extends Lifecycle { ...@@ -117,7 +117,7 @@ public class WindowsServiceLifecycle extends Lifecycle {
@Override @Override
public void restart() throws IOException, InterruptedException { public void restart() throws IOException, InterruptedException {
Jenkins jenkins = Jenkins.getInstance(); Jenkins jenkins = Jenkins.getInstanceOrNull();
try { try {
if (jenkins != null) { if (jenkins != null) {
jenkins.cleanUp(); jenkins.cleanUp();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册