diff --git a/src/main/java/org/jenkinsci/plugins/JiraTestResultReporter/JiraTestDataPublisher.java b/src/main/java/org/jenkinsci/plugins/JiraTestResultReporter/JiraTestDataPublisher.java index 803e49c..13145ba 100644 --- a/src/main/java/org/jenkinsci/plugins/JiraTestResultReporter/JiraTestDataPublisher.java +++ b/src/main/java/org/jenkinsci/plugins/JiraTestResultReporter/JiraTestDataPublisher.java @@ -779,10 +779,9 @@ public ListBoxModel doFillIssueTypeItems(@QueryParameter String projectKey) { * @param jsonForm * @return * @throws FormException - * @throws InterruptedException */ @JavaScriptMethod - public FormValidation validateFieldConfigs(String jsonForm) throws FormException, InterruptedException { + public FormValidation validateFieldConfigs(String jsonForm) throws FormException { // extracting the configurations for associated with this plugin (we receive the entire form) StaplerRequest req = Stapler.getCurrentRequest(); JSONObject jsonObject = JSONObject.fromObject(jsonForm); @@ -790,7 +789,7 @@ public FormValidation validateFieldConfigs(String jsonForm) throws FormException JSONObject jiraPublisherJSON = null; for (Object o : publishers.keySet()) { - if (o.toString().contains(JiraTestDataPublisher.class.getSimpleName())) { + if (o.toString().equals("testDataPublishers")) { jiraPublisherJSON = (JSONObject) publishers.get(o); break; } diff --git a/src/main/resources/org/jenkinsci/plugins/JiraTestResultReporter/JiraTestDataPublisher/config.jelly b/src/main/resources/org/jenkinsci/plugins/JiraTestResultReporter/JiraTestDataPublisher/config.jelly index b6a864b..844adc5 100644 --- a/src/main/resources/org/jenkinsci/plugins/JiraTestResultReporter/JiraTestDataPublisher/config.jelly +++ b/src/main/resources/org/jenkinsci/plugins/JiraTestResultReporter/JiraTestDataPublisher/config.jelly @@ -2,6 +2,7 @@ + @@ -37,25 +38,26 @@ /> -
- - - - - + + +
+
+ + + +
+
-