Skip to content

Commit

Permalink
Added POST annotation for Form Validations (missing few)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdailey99 committed Jun 14, 2023
1 parent 6027a23 commit 6fb7b00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/io/jenkins/plugins/ProvarAutomation.java
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ public void setInstallations(ProvarAutomationInstallation... provarAutomationIns
save();
}

@POST
public FormValidation doCheckBuildFile(@QueryParameter String value)
throws IOException, ServletException {
if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
Expand All @@ -385,6 +386,7 @@ public FormValidation doCheckBuildFile(@QueryParameter String value)
return FormValidation.validateRequired(value);
}

@POST
public FormValidation doCheckTestPlan(@QueryParameter String value)
throws IOException, ServletException {
if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
Expand All @@ -396,6 +398,7 @@ public FormValidation doCheckTestPlan(@QueryParameter String value)
return FormValidation.ok();
}

@POST
public FormValidation doCheckTestFolder(@QueryParameter String value)
throws IOException, ServletException {
if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
Expand All @@ -407,6 +410,7 @@ public FormValidation doCheckTestFolder(@QueryParameter String value)
return FormValidation.ok();
}

@POST
public FormValidation doCheckSecretsPassword(@QueryParameter String value)
throws IOException, ServletException {
if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
Expand All @@ -418,6 +422,7 @@ public FormValidation doCheckSecretsPassword(@QueryParameter String value)
return FormValidation.ok();
}

@POST
public FormValidation doCheckProjectName(@QueryParameter String value)
throws IOException, ServletException {
if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
Expand Down Expand Up @@ -615,6 +620,7 @@ public FormValidation doCheckHome(@QueryParameter File value) {
return FormValidation.ok();
}

@POST
public FormValidation doCheckName(@QueryParameter String value) {
return FormValidation.validateRequired(value);
}
Expand Down

0 comments on commit 6fb7b00

Please sign in to comment.