mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 21:12:15 +00:00
[JENKINS-32820] Fix the last merge issues
This commit is contained in:
1 parent
579a88d6e7
commit
08a993d7bc
3 files changed
+3
-3
No files matched your search
@@ -40,7 +40,7 @@ public class SolarisSMFLifecycle extends Lifecycle {
|
||||
*/
|
||||
@Override
|
||||
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 {
|
||||
if (jenkins != null) {
|
||||
jenkins.cleanUp();
|
||||
|
||||
@@ -67,7 +67,7 @@ public class UnixLifecycle extends Lifecycle {
|
||||
|
||||
@Override
|
||||
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 {
|
||||
if (jenkins != null) {
|
||||
jenkins.cleanUp();
|
||||
|
||||
@@ -117,7 +117,7 @@ public class WindowsServiceLifecycle extends Lifecycle {
|
||||
|
||||
@Override
|
||||
public void restart() throws IOException, InterruptedException {
|
||||
Jenkins jenkins = Jenkins.getInstance();
|
||||
Jenkins jenkins = Jenkins.getInstanceOrNull();
|
||||
try {
|
||||
if (jenkins != null) {
|
||||
jenkins.cleanUp();
|
||||
|
||||
Reference in new issue
Block a user