diff --git a/src/main/java/jenkins/plugins/jobcacher/CacheWrapper.java b/src/main/java/jenkins/plugins/jobcacher/CacheWrapper.java index ff2e8a2..dad2c72 100644 --- a/src/main/java/jenkins/plugins/jobcacher/CacheWrapper.java +++ b/src/main/java/jenkins/plugins/jobcacher/CacheWrapper.java @@ -94,22 +94,17 @@ public void setSkipSave(boolean skipSave) { this.skipSave = skipSave; } - @DataBoundSetter @SuppressWarnings("unused") public boolean getSkipRestore() { return skipRestore; } + @DataBoundSetter @SuppressWarnings("unused") public void setSkipRestore(boolean skipRestore) { this.skipRestore = skipRestore; } - @SuppressWarnings("unused") - public boolean setSkipRestore() { - return skipRestore; - } - @SuppressWarnings("unused") public String getDefaultBranch() { return defaultBranch; diff --git a/src/test/java/jenkins/plugins/jobdsl/JobDslTest.java b/src/test/java/jenkins/plugins/jobdsl/JobDslTest.java index 753bb16..2870cc3 100644 --- a/src/test/java/jenkins/plugins/jobdsl/JobDslTest.java +++ b/src/test/java/jenkins/plugins/jobdsl/JobDslTest.java @@ -8,7 +8,6 @@ import java.nio.charset.StandardCharsets; import org.apache.commons.io.IOUtils; -import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.jvnet.hudson.test.Issue; @@ -30,7 +29,6 @@ public class JobDslTest { @Test @Issue("https://github.com/jenkinsci/jobcacher-plugin/issues/271") - @Ignore public void shouldCreateFreestyleJob() throws Exception { runJobDsl("/jobdsl/freestyle.groovy", jenkins); CacheWrapper step = jenkins.jenkins.getItemByFullName("freestyle", FreeStyleProject.class).getBuildWrappersList().get(CacheWrapper.class);