How to delete failed build logs?
Hi All
I have a BuildForge and ClearCase integration. For each BF project, the first thing it does is to check if there are new activities in CC. BF CheckNewActivity step will fails and the project will stop if no new activities are found.
So after a while, there are many failed build logs in BF management console. It doesn't look good for these builds are not really failed one, but actually there are no need to run ones.
How can I delete the build logs if CheckNewActivity step fails?
Thanks
Jirong
One answer
Check out Trigger Variable Reference in the Help. What you want is _CI_BUILD_DELETE.
~Spencer
~Spencer
Comments
Below is my step command for check new activities:
ratlperl build.pl CHECKNEWACTIVITY
build.pl is our build script which does everything. In this case, how can I set this environment variable _CI_BUILD_DELETE?
Thanks
Jirong
Either have the script add the variable or wrap the script in an adaptor and have the adaptor set the variable. You want the variable to be added only if the step fails, so you would have to do something based on the result.
~Spencer