Skip to content

Commit

Permalink
Merge pull request #8 from takipi/feature/OOE-5
Browse files Browse the repository at this point in the history
[OOE-5] Exception occurs when running quality report with no deployment name
  • Loading branch information
daverted authored Apr 29, 2020
2 parents 01c2747 + 93e797b commit 59141c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ public void validate(ActionParametersMap params, ErrorCollection errorCollection
errorCollection.addError(Const.ENV_ID, "Invalid environment ID");
}

if ((params.getString(Const.APP_NAME).trim().length() == 0) && (params.getString(Const.DEP_NAME).trim().length() == 0)) {
errorCollection.addError(Const.APP_NAME, "Must provide an Application Name, or a Deployment Name, or both.");
}

// validate total errors
validNumber(Const.TOP_ERROR_COUNT);
validNumber(Const.MAX_ERROR_VOLUME, Const.CHECK_VOLUME_ERRORS);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/editTaskConfig.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@

<h3>General settings</h3>
[@ww.textfield labelKey="com.overops.plugins.bamboo.task.config.envId" name="envId" required="false" description="The OverOps environment identifier (e.g S12345). If blank, the <a href=\"/plugins/servlet/overops/admin\">default value</a> is used."/]
[@ww.textfield labelKey="com.overops.plugins.bamboo.task.config.applicationName" name="applicationName" required="false" description="<em>(Optional)</em> Application Name as specified in OverOps. If blank, a Deployment Name must be provided."/]
[@ww.textfield labelKey="com.overops.plugins.bamboo.task.config.deploymentName" name="deploymentName" required="false" description="<em>(Optional)</em> Deployment Name as specified in OverOps. If blank, an Application Name must be provided. See: <a href='https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html' target='_blank' rel='nofollow'>Bamboo variables</a>"/]
[@ww.textfield labelKey="com.overops.plugins.bamboo.task.config.applicationName" name="applicationName" required="false" description="<em>(Optional)</em> Application Name as specified in OverOps."/]
[@ww.textfield labelKey="com.overops.plugins.bamboo.task.config.deploymentName" name="deploymentName" required="false" description="<em>(Optional)</em> Deployment Name as specified in OverOps. See: <a href='https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html' target='_blank' rel='nofollow'>Bamboo variables</a>"/]
<hr class="divider"/>
[@ww.textfield labelKey="com.overops.plugins.bamboo.task.config.regexFilter" name="regexFilter" required="false" description="<em>(Optional)</em> Ignore specific event types when generating the OverOps Reliability report. Event types include: <em>Uncaught Exception, Caught Exception, Swallowed Exception, Logged Error, Logged Warning, Timer</em>. For example: <code class='inline'>\"type\":\"s*(Logged Error|Logged Warning|Timer)\"</code>" /]
<hr class="divider"/>
Expand Down

0 comments on commit 59141c0

Please sign in to comment.