Skip to content

Commit

Permalink
Reactivate test after fixing bug #271
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesbusy committed Mar 6, 2024
1 parent 64afb0d commit 85332b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions src/main/java/jenkins/plugins/jobcacher/CacheWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/test/java/jenkins/plugins/jobdsl/JobDslTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 85332b0

Please sign in to comment.