Mailinglist Archive: opensuse-buildservice (116 mails)

< Previous Next >
Re: [opensuse-buildservice] counting of suggessfully built packages for the month in obs.
  • From: Bruno Friedmann <bruno@xxxxxxxxxxx>
  • Date: Mon, 13 Aug 2012 20:54:31 +0200
  • Message-id: <12577467.AKWHUJvyYJ@c-3po>
On Monday 13 August 2012 16.59:04 doiggl@xxxxxxxxxxxxxxxxxx wrote:
Hello,
With obs, can a count of suggessfully built packages for the month be
shown on the 'Scheduler Status' page.

With each successful built package, log a entry like so:

echo 1 >> /tmp/built-packages-count.log

A sample log may look like this:
# cat /tmp/built-packages-count.log
1
1
1
1
1

So in this case:
echo "Built packages for month:" `cat /tmp/built-packages-count.log | wc
-l`

The result based on the example is:
Built packages for month: 5

To reset the value at the beginning of the next month just remove the
/tmp/built-packages-count.log
and the count would start at 1 again after the first successful build of
the next package.

If you see the number is increasing you know packages are being built.
Be interesting to know how many packages are built in a month.

Cheers Glenn

Glenn what do you want to count. one spec can contain several build packages so
from what I saw,
your method would be able to only count the build of one spec.

--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch

openSUSE Member & Ambassador
GPG KEY : D5C9B751C4653227
irc: tigerfoot
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
References