This repository was archived by the owner on Mar 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
main/java/com/mathworks/ci
test/java/com/mathworks/ci Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1111import org .jenkinsci .plugins .workflow .steps .StepDescriptor ;
1212import org .jenkinsci .plugins .workflow .steps .StepExecution ;
1313import org .kohsuke .stapler .DataBoundConstructor ;
14+ import org .kohsuke .stapler .DataBoundSetter ;
1415import com .google .common .collect .ImmutableSet ;
1516import hudson .EnvVars ;
1617import hudson .Extension ;
2324public class RunMatlabCommandStep extends Step {
2425
2526 private String command ;
26- private String startupOptions ;
27+ private String startupOptions = "" ;
2728
2829 @ DataBoundConstructor
29- public RunMatlabCommandStep (String command , String startupOptions ) {
30+ public RunMatlabCommandStep (String command ) {
3031 this .command = command ;
31- this .startupOptions = startupOptions ;
3232 }
3333
3434
3535 public String getCommand () {
3636 return this .command ;
3737 }
3838
39+ @ DataBoundSetter
40+ public void setStartupOptions (String startupOptions ) {
41+ this .startupOptions = startupOptions ;
42+ }
43+
3944 public String getStartupOptions () {
4045 return Util .fixNull (this .startupOptions );
4146 }
Original file line number Diff line number Diff line change 2020
2121public class RunMatlabCommandStepTester extends RunMatlabCommandStep {
2222 @ DataBoundConstructor
23- public RunMatlabCommandStepTester (String command , String startupOptions ) {
24- super (command , startupOptions );
23+ public RunMatlabCommandStepTester (String command ) {
24+ super (command );
2525 }
2626
2727 @ Override
You can’t perform that action at this time.
0 commit comments