Skip to main content

developerWorks >  Rational  >  Forums  >  Build and Release Management / Rational Build Forge  >  developerWorks

Setting threshold    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is answered.

Permlink Replies: 4 - Pages: 1 - Last Post: Nov 3, 2009 3:31 PM Last Post By: stst Threads: [ Previous | Next ]
stst

Posts: 5
Registered: Jul 23, 2009 02:47:28 PM
Setting threshold
Posted: Nov 02, 2009 03:02:56 PM
 
Click to report abuse...   Click to reply to this thread Reply
I am trying to set a threshold to a step that has a specific filter applied. I am using the bset command to set _ERROR_THRESHOLD to allow 5 failures. I still continue to fail when the error occurs the first time. Any idea on setting the error threshold correctly is much apprecaited.

.bset env _ERROR_THRESHOLD=5
Echo 'Hello World'

(I have a filter to mark Hello World as error)

Thanks
bju

Posts: 6
Registered: Jul 01, 2006 11:52:22 AM
Re: Setting threshold
Posted: Nov 02, 2009 03:25:42 PM   in response to: stst in response to: stst's post
 
Click to report abuse...   Click to reply to this thread Reply
It looks like you need to set with C5 instead of just 5.

The documentation lists a couple of forms for error threshold on steps.

----

When you use the variable in a step, the system counts the errors in the individual step. Additional forms are available:

* A value such as W9 indicates that after 9 errors, the step is put in a warning state, regardless of future errors caught by filters.
* A value such as C8 indicates that after 8 errors, the step is set to failure status, but any Clear Fail filter can clear the failure.
stst

Posts: 5
Registered: Jul 23, 2009 02:47:28 PM
Re: Setting threshold
Posted: Nov 02, 2009 03:48:02 PM   in response to: stst in response to: stst's post
 
Click to report abuse...   Click to reply to this thread Reply
After the change I still got the same results. Here is my output from my job run
159 11/02/09 02:33PM ENV _ERROR_THRESHOLD=C5
160 11/02/09 02:33PM EXEC Performing variable expansion on command line
161 11/02/09 02:33PM SCRIPT Echo 'Hello World'
163 11/02/09 02:33PM FILT Match on filter Hello World (Test_Filter) - Set fail status Threshold - 0/0.
164 11/02/09 02:33PM EXEC 'Hello World'

The Threshold is still set as 0/0. I am not sure what has to be done to change it to 0/5. This is what I changed.

.bset env _ERROR_THRESHOLD=C5
bhamilton

Posts: 3
Registered: Oct 21, 2008 03:54:35 PM
Re: Setting threshold
Posted: Nov 03, 2009 02:39:23 PM   in response to: stst in response to: stst's post
 
Click to report abuse...   Click to reply to this thread Reply
If I'm not mistaken, you need to separate your bset from your command. The bset is not taking place until the next step
stst

Posts: 5
Registered: Jul 23, 2009 02:47:28 PM
Re: Setting threshold
Posted: Nov 03, 2009 03:31:26 PM   in response to: bhamilton in response to: bhamilton's post
 
Click to report abuse...   Click to reply to this thread Reply
Thanks a bunch, that did the trick. I moved the bset command to the previous step.

165 11/03/09 02:31PM FILT Match on filter Hello World (Test_Filter) - Set fail status Threshold - 1/4.
166 11/03/09 02:31PM EXEC 'Hello World'
167 11/03/09 02:31PM FILT Match on filter Hello World (Test_Filter) - Set fail status Threshold - 2/4.
168 11/03/09 02:31PM EXEC 'Hello World'
169 11/03/09 02:31PM FILT Match on filter Hello World (Test_Filter) - Set fail status Threshold - 3/4.
170 11/03/09 02:31PM EXEC 'Hello World'
171 11/03/09 02:31PM FILT Match on filter Hello World (Test_Filter) - Set fail status Threshold - 4/4.
172 11/03/09 02:31PM EXEC 'Hello World'
173 11/03/09 02:31PM FILT Step Error threshold (4) has been exceeded, taking action of Fail.
174 11/03/09 02:31PM FILT Match on filter Hello World (Test_Filter) - Set fail status Threshold - 5/4.
175 11/03/09 02:31PM EXEC 'Hello World'
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums