-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,7 @@ | |
import org.kohsuke.stapler.DataBoundSetter; | ||
import org.kohsuke.stapler.QueryParameter; | ||
import org.kohsuke.stapler.StaplerRequest; | ||
import org.kohsuke.stapler.verb.POST; | ||
|
||
public class WAStoragePublisher extends Recorder implements SimpleBuildStep { | ||
private static final Logger LOGGER = Logger.getLogger(WAStoragePublisher.class.getName()); | ||
|
@@ -639,6 +640,7 @@ public boolean configure(StaplerRequest req, JSONObject formData) | |
* @throws IOException | ||
Check warning on line 640 in src/main/java/com/microsoftopentechnologies/windowsazurestorage/WAStoragePublisher.java ci.jenkins.io / Java Compilerspotbugs:spotbugs
|
||
* @throws ServletException | ||
Check warning on line 641 in src/main/java/com/microsoftopentechnologies/windowsazurestorage/WAStoragePublisher.java ci.jenkins.io / Java Compilerspotbugs:spotbugs
Check warning on line 641 in src/main/java/com/microsoftopentechnologies/windowsazurestorage/WAStoragePublisher.java ci.jenkins.io / JavaDocJavaDoc @throws
|
||
*/ | ||
@POST | ||
public FormValidation doCheckAccount( | ||
//CHECKSTYLE:OFF | ||
@QueryParameter String was_storageAccName, | ||
|
@@ -671,17 +673,8 @@ public FormValidation doCheckAccount( | |
return FormValidation.ok(Messages.WAStoragePublisher_SA_val()); | ||
} | ||
|
||
/** | ||
* Checks for valid container name. | ||
* | ||
* @param request | ||
* @return FormValidation result | ||
* @throws IOException | ||
* @throws ServletException | ||
*/ | ||
public FormValidation doCheckContainerName(StaplerRequest request) | ||
throws IOException, ServletException { | ||
final String containerName = request.getParameter("val"); | ||
@POST | ||
public FormValidation doCheckContainerName(@QueryParameter("value") String containerName) { | ||
if (!StringUtils.isBlank(containerName)) { | ||
// Token resolution happens dynamically at runtime , so for | ||
// basic validations | ||
|
@@ -696,8 +689,8 @@ public FormValidation doCheckContainerName(StaplerRequest request) | |
} | ||
} | ||
|
||
public FormValidation doCheckFileShareName(StaplerRequest request) { | ||
final String fileShareName = request.getParameter("val"); | ||
@POST | ||
public FormValidation doCheckFileShareName(@QueryParameter("value") String fileShareName) { | ||
if (!StringUtils.isBlank(fileShareName)) { | ||
// Token resolution happens dynamically at runtime , so for | ||
// basic validations | ||
|
@@ -712,14 +705,16 @@ public FormValidation doCheckFileShareName(StaplerRequest request) { | |
} | ||
} | ||
|
||
public FormValidation doCheckPath(@QueryParameter String val) { | ||
if (StringUtils.isBlank(val)) { | ||
@POST | ||
public FormValidation doCheckFilesPath(@QueryParameter String value) { | ||
if (StringUtils.isBlank(value)) { | ||
return FormValidation.error(Messages | ||
.WAStoragePublisher_artifacts_req()); | ||
} | ||
return FormValidation.ok(); | ||
} | ||
|
||
@POST | ||
public FormValidation doCheckBlobName(@QueryParameter String val) { | ||
if (StringUtils.isBlank(val)) { | ||
return FormValidation.error(Messages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters