Build Percentage

24 views
Skip to first unread message

Mike Guiney

unread,
Jul 16, 2012, 5:21:54 AM7/16/12
to ccnet...@googlegroups.com
Hi All,
 
Just thought I would ask/share. I rather 'crudely' added a row to the web dashboard project grid by modifying the template ProjectGrid.vm (see pic attached for result). I copied and pasted the BuildPercentage table row piece into the start of the tbody section as follows:
 
<tbody>
  <tr>
      <td colspan="10">
        <table  id="BuildPercentage">
          <tr title="Percentage of successfull builds : $OKPercentToolTip%">
            #if ($OKPercent == 50)
            <td width="100%"
                bgcolor="#33CC00"></td>
            #else
            <td width="$OKPercent%"
                bgcolor="#33CC00"></td>
            <td width="$NOKPercent%"
                bgcolor="#FF0000"></td>
            <td width="$NOKPercent%"
                bgcolor="#FF0000"></td>
            <td width="$OKPercent%"
                bgcolor="#33CC00"></td>
            #end
          </tr>
        </table>
      </td>
    </tr>

 
    #set ($RowId = 0)
 
This gave me the following effect (shown in pic attached). Allowing me to see the build percentage at the top of the page so I dont have to scroll down. It has put it under to the headers, but its still pretty clear to my team what it is. It seems to be already determined by a boolean set somewhere (#if ($barAtTop), #if ($barAtBottom)), but I could not find where to set this. If anyone can suggest a better way to do this, please let me know!
 
Regards,
Mike
 
 
cc.net.png

Alex Vilela

unread,
Jul 16, 2012, 6:36:47 AM7/16/12
to ccnet...@googlegroups.com
Hi Mike,

You can change the successBar position at your dashboard.config to do that. 

Have a look at Server Report Server Plugin:

Or if you have a farm, Farm Report Farm Plugin:

Regards,

Alex Vilela

Mike G

unread,
Jul 17, 2012, 5:06:33 AM7/17/12
to ccnet...@googlegroups.com
Hi Alex,
 
Thanks very much! I knew there had to be a way to set this in config. Should have thought to look there!
 
Much appreciated!
 
Mike
Reply all
Reply to author
Forward
0 new messages