Skip to content

Commit 54b2187

Browse files
committed
Restricting doCheckEncoding.
1 parent 75181a5 commit 54b2187

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/jenkinsci/plugins/workflow/steps/durable_task/DurableTaskStep.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
import org.jenkinsci.plugins.workflow.steps.StepExecution;
5959
import org.jenkinsci.plugins.workflow.support.concurrent.Timeout;
6060
import org.jenkinsci.plugins.workflow.support.concurrent.WithThreadName;
61+
import org.kohsuke.accmod.Restricted;
62+
import org.kohsuke.accmod.restrictions.DoNotUse;
6163
import org.kohsuke.stapler.DataBoundSetter;
6264
import org.kohsuke.stapler.QueryParameter;
6365

@@ -104,6 +106,7 @@ public boolean isReturnStatus() {
104106

105107
public abstract static class DurableTaskStepDescriptor extends StepDescriptor {
106108

109+
@Restricted(DoNotUse.class)
107110
public FormValidation doCheckEncoding(@QueryParameter boolean returnStdout, @QueryParameter String encoding) {
108111
if (encoding.isEmpty()) {
109112
return FormValidation.ok();

0 commit comments

Comments
 (0)