How to modify number of "Days" option for CLASS
I would really like to know if there is an way to modify the number of days option for a class in BF. Currently there is a drop-down with options I need to change that to 60 days but the max number that is available for selection is 45. I need to keep the logs for 60 days and then purge them.
Request your help here.
Thanks.
Request your help here.
Thanks.
2 answers
I would really like to know if there is an way to modify the number of days option for a class in BF. Currently there is a drop-down with options I need to change that to 60 days but the max number that is available for selection is 45. I need to keep the logs for 60 days and then purge them.
Request your help here.
Thanks.
Hi,
I can't think of a way using the UI, but if you're able to run a script it's possible. With a few modifications for your user/password and class name, the Perl script below can change it.
use strict;
use BuildForge::Services;
my $host = 'localhost';
my $user = 'root';
my $password = 'root';
my $buildClassName = 'Scratch';
my $conn = new BuildForge::Services::Connection($host);
my $token = $conn->authUser($user, $password);
my $buildClass = BuildForge::Services::DBO::BuildClass->findByName($conn, $buildClassName);
die('Could not find build class ' . $buildClassName) unless defined($buildClass);
$buildClass->setPurgeDays(60);
$buildClass = $buildClass->update();
$conn->logout();
$conn->close();
Brent Ulbricht
RTC Build Lead