Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
 Check out Trigger Variable Reference in the Help.  What you want is _CI_BUILD_DELETE.

~Spencer

0 votes

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 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Feb 25 '13, 12:51 p.m.

Question was seen: 5,161 times

Last updated: Feb 26 '13, 11:56 a.m.

Confirmation Cancel Confirm