35
35
import org .kohsuke .stapler .DataBoundConstructor ;
36
36
import org .kohsuke .stapler .DataBoundSetter ;
37
37
import org .kohsuke .stapler .Stapler ;
38
- import org .kohsuke .stapler .StaplerRequest ;
38
+ import org .kohsuke .stapler .StaplerRequest2 ;
39
39
40
40
public class JiraIssueParameterDefinition extends ParameterDefinition {
41
41
private static final long serialVersionUID = 3927562542249244416L ;
@@ -50,7 +50,7 @@ public JiraIssueParameterDefinition(String name, String description, String jira
50
50
}
51
51
52
52
@ Override
53
- public ParameterValue createValue (StaplerRequest req ) {
53
+ public ParameterValue createValue (StaplerRequest2 req ) {
54
54
String [] values = req .getParameterValues (getName ());
55
55
if (values == null || values .length != 1 ) {
56
56
return null ;
@@ -60,7 +60,7 @@ public ParameterValue createValue(StaplerRequest req) {
60
60
}
61
61
62
62
@ Override
63
- public ParameterValue createValue (StaplerRequest req , JSONObject formData ) {
63
+ public ParameterValue createValue (StaplerRequest2 req , JSONObject formData ) {
64
64
JiraIssueParameterValue value = req .bindJSON (JiraIssueParameterValue .class , formData );
65
65
return value ;
66
66
}
@@ -71,7 +71,7 @@ public ParameterValue createValue(CLICommand command, String value) throws IOExc
71
71
}
72
72
73
73
public List <JiraIssueParameterDefinition .Result > getIssues () throws IOException , TimeoutException {
74
- Job <?, ?> job = Stapler .getCurrentRequest ().findAncestorObject (Job .class );
74
+ Job <?, ?> job = Stapler .getCurrentRequest2 ().findAncestorObject (Job .class );
75
75
76
76
JiraSite site = JiraSite .get (job );
77
77
if (site == null ) {
0 commit comments