
templates.release-report.soy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jira-jenkins-plugin Show documentation
Show all versions of jira-jenkins-plugin Show documentation
JIRA Plugin to integrate Jenkins CI
/**
* Copyright (c) 2012-present Marvelution B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{namespace JJI.Templates.ReleaseReport}
/**
* @param issueKey
* @param count the total number of builds
* @param failedBuildCount number of failed builds
* @param unstableBuildCount number of unstable builds
* @param successfulBuildCount number of successful builds
* @param unknownBuildCount number of unknown builds
*/
{template .jenkinsBuilds}
{if $count > 0}
{let $tooltipText}
{call .buildsText}
{param count: $count /}
{param failedBuildCount: $failedBuildCount /}
{param unstableBuildCount: $unstableBuildCount /}
{param successfulBuildCount: $successfulBuildCount /}
{param unknownBuildCount: $unknownBuildCount /}
{/call}
{/let}
{let $iconClass}
{call .buildsIconClass}
{param failedBuildCount: $failedBuildCount /}
{param unstableBuildCount: $unstableBuildCount /}
{param successfulBuildCount: $successfulBuildCount /}
{param unknownBuildCount: $unknownBuildCount /}
{/call}
{/let}
{/if}
{/template}
/**
* @param count the number of builds
* @param failedBuildCount number of failed builds
* @param unstableBuildCount number of unstable builds
* @param successfulBuildCount number of successful builds
* @param unknownBuildCount number of unknown builds
*/
{template .buildsText}
{let $tagStart: '
' /}
{let $tagEnd: '' /}
{if $failedBuildCount > 0}
{getText('releasereport.build.failure', $tagStart, $failedBuildCount, $tagEnd) |noAutoescape}
{elseif $unstableBuildCount > 0}
{getText('releasereport.build.unstable', $tagStart, $unstableBuildCount, $tagEnd) |noAutoescape}
{elseif $successfulBuildCount > 0}
{getText('releasereport.build.success', $tagStart, $successfulBuildCount, $tagEnd) |noAutoescape}
{elseif $unknownBuildCount > 0}
{getText('releasereport.build.unknown', $tagStart, $unknownBuildCount, $tagEnd) |noAutoescape}
{else}
{getText('releasereport.build.unknown', $tagStart, $count, $tagEnd) |noAutoescape}
{/if}
{/template}
/**
* @param failedBuildCount number of failed builds
* @param unstableBuildCount number of unstable builds
* @param successfulBuildCount number of successful builds
* @param unknownBuildCount number of unknown builds
*/
{template .buildsIconClass}
{if $failedBuildCount > 0}
aui-iconfont-error jenkins-build-failure
{elseif $unstableBuildCount > 0}
aui-iconfont-error jenkins-build-unstable
{elseif $successfulBuildCount > 0}
aui-iconfont-approve jenkins-build-success
{elseif $unknownBuildCount > 0}
aui-iconfont-devtools-task-cancelled jenkins-build-aborted
{/if}
{/template}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy