Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
JENKINS-40919
provide migration for rollbackOnly field
  • Loading branch information
prospero238 committed Jan 9, 2017
1 parent 68c7b9e commit a764793
Showing 1 changed file with 19 additions and 0 deletions.
Expand Up @@ -31,6 +31,8 @@ public class ExecutedChangesetAction implements Action {
private String appliedTag;

private boolean rollbacksTested;
@Deprecated
private transient Boolean rollbackOnly;

public ExecutedChangesetAction() {
}
Expand All @@ -39,6 +41,14 @@ public ExecutedChangesetAction(Run<?, ?> build) {
this.build = build;
}

protected Object readResolve() {
if (rollbackOnly != null) {
noExecutionsExpected = rollbackOnly;
}
return this;

}

public String getIconFileName() {
return "/plugin/liquibase-runner/liquibase_icon24x24.png";
}
Expand Down Expand Up @@ -186,4 +196,13 @@ public void setNoExecutionsExpected(boolean noExecutionsExpected) {
public boolean isNoExecutionsExpected() {
return noExecutionsExpected;
}

@Deprecated
public void setRollbackOnly(boolean rollbackOnly) {
this.rollbackOnly = rollbackOnly;
}

public boolean isRollbackOnly() {
return rollbackOnly;
}
}

0 comments on commit a764793

Please sign in to comment.