Skip to content

Commit

Permalink
[JENKINS-32820] Fix the last merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Feb 12, 2017
1 parent 579a88d commit 08a993d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/lifecycle/UnixLifecycle.java
Expand Up @@ -67,7 +67,7 @@ public UnixLifecycle() throws IOException {

@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();
Expand Down
Expand Up @@ -117,7 +117,7 @@ public void rewriteHudsonWar(File by) throws IOException {

@Override
public void restart() throws IOException, InterruptedException {
Jenkins jenkins = Jenkins.getInstance();
Jenkins jenkins = Jenkins.getInstanceOrNull();
try {
if (jenkins != null) {
jenkins.cleanUp();
Expand Down

0 comments on commit 08a993d

Please sign in to comment.