Skip to content

Commit

Permalink
[CONTINUUM-1279] add "Build Information" to the build result reports …
Browse files Browse the repository at this point in the history
…and notification.

git-svn-id: https://svn.apache.org/repos/asf/maven/continuum/trunk@575794 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
olamy committed Sep 14, 2007
1 parent 35c4446 commit 2fc412c
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
Expand Up @@ -121,6 +121,32 @@ $dep.groupId:$dep.artifactId:$dep.version
#end
#end
#end

#if ( $build.buildDefinition )
****************************************************************************
Build Defintion:
****************************************************************************
#if ( $build.buildDefinition.type == 'ant' )
Ant build filename: $build.buildDefinition.buildFile
Goals: $build.buildDefinition.goals
#elseif ( $build.buildDefinition.type == 'shell' )
shell: $build.buildDefinition.buildFile
#else
POM filename: $build.buildDefinition.buildFile
Goals: $build.buildDefinition.goals
#end
Arguments: $build.buildDefinition.arguments
Build Fresh: $build.buildDefinition.buildFresh
Always Build: $build.buildDefinition.alwaysBuild
Default Build Definition: $build.buildDefinition.defaultForProject
Schedule: $build.buildDefinition.schedule.name
#if ( $build.buildDefinition.profile )
Profile Name: $build.buildDefinition.profile.name
#end
Description: $build.buildDefinition.description
#end


#if ( $build.testResult )
****************************************************************************
Test Summary:
Expand Down
Expand Up @@ -485,6 +485,18 @@ buildResult.changesSinceLastSuccess = Other Changes Since Last Success
buildResult.generatedReports.title = Generated Reports
buildResult.generatedReports.surefire = Surefire Report
buildResult.buildOutput.text = Download as Text
buildResult.buildDefinition = Build Definition Used
buildResult.buildDefinition.ant.label = Ant build filename
buildResult.buildDefinition.shell.label = Shell executable
buildResult.buildDefinition.maven.label = POM filename
buildResult.buildDefinition.goals = Goals
buildResult.buildDefinition.arguments = Arguments
buildResult.buildDefinition.buildFresh = Build Fresh
buildResult.buildDefinition.alwaysBuild = Always Build
buildResult.buildDefinition.defaultForProject = Is it default ?
buildResult.buildDefinition.schedule = Schedule
buildResult.buildDefinition.profileName = Profile
buildResult.buildDefinition.description = Description

# From ContinuumProjectState
buildResult.trigger.0 = Scheduled
Expand Down
58 changes: 58 additions & 0 deletions continuum-webapp/src/main/webapp/WEB-INF/jsp/buildResult.jsp
Expand Up @@ -155,6 +155,64 @@
<ww:else>
<b><ww:text name="buildResult.dependencies.noChanges"/></b>
</ww:else>

<h4><ww:text name="buildResult.buildDefinition"/></h4>
<table border="1" cellspacing="2" cellpadding="3" width="80%">
<tbody>
<ww:if test="buildResult.buildDefinition.type='ant'">
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.ant.label"/></th>
<td><ww:property value="buildResult.buildDefinition.buildFile"/></td>
</tr>
</ww:if>
<ww:elseif test="buildResult.buildDefinition.type='shell'">
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.shell.label"/></th>
<td><ww:property value="buildResult.buildDefinition.buildFile"/></td>
</tr>
</ww:elseif>
<ww:else>
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.maven.label"/></th>
<td><ww:property value="buildResult.buildDefinition.buildFile"/></td>
</tr>
</ww:else>
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.goals"/></th>
<td><ww:property value="buildResult.buildDefinition.goals"/></td>
</tr>
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.arguments"/></th>
<td><ww:property value="buildResult.buildDefinition.arguments"/></td>
</tr>
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.buildFresh"/></th>
<td><ww:property value="buildResult.buildDefinition.buildFresh"/></td>
</tr>
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.alwaysBuild"/></th>
<td><ww:property value="buildResult.buildDefinition.alwaysBuild"/></td>
</tr>
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.defaultForProject"/></th>
<td><ww:property value="buildResult.buildDefinition.defaultForProject"/></td>
</tr>
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.schedule"/></th>
<td><ww:property value="buildResult.buildDefinition.schedule.name"/></td>
</tr>
<ww:if test="buildResult.buildDefinition.profile != null">
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.profileName"/></th>
<td><ww:property value="buildResult.buildDefinition.profile.name"/></td>
</tr>
</ww:if>
<tr class="b">
<th><ww:text name="buildResult.buildDefinition.description"/></th>
<td><ww:property value="buildResult.buildDefinition.description"/></td>
</tr>
</tbody>
</table>

<ww:if test="hasSurefireResults">
<h4><ww:text name="buildResult.generatedReports.title"/></h4>
Expand Down

0 comments on commit 2fc412c

Please sign in to comment.