Skip to content

Commit

Permalink
Merge pull request #274 from jonesbusy/feature/reactivate-tests
Browse files Browse the repository at this point in the history
Fix JobDSL for #271 and reactive test
  • Loading branch information
jonesbusy committed Mar 6, 2024
2 parents 64afb0d + 85332b0 commit 00180ef
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 00180ef

Please sign in to comment.