Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Performing a step based on a macro (https://www.kinook.com/Forum/showthread.php?t=4369)

ChrisF 01-11-2010 02:49 PM

Performing a step based on a macro
 
I have a subroutine (in the Subroutine Steps tab) that has the following group with the following steps

Send e-mail group
- Compress a log file
- Send build pass e-mail
- Send build fail e-mail

I only want to either the second or third step in the subroutine based on, you guessed it, build pass or fail condition. I do this by calling the subroutine as the last step of my Project Steps tab (pass condition), and in my Failure Steps tab (fail condition).

I have a BUILD_STATUS macro that I set to Passed when calling it from the Project Steps tab, set it to Failed when calling it from the Failure steps tab.

In each of the Send build pass e-mail or Send build fail e-mail steps, I check for this macro. However, I'm still sending BOTH e-mails.

What am I missing?

kinook 01-11-2010 05:24 PM

Use a rule of

%BUILD_STATUS% is equal to Passed

for the pass e-mail step and

%BUILD_STATUS% is equal to Failed

for the fail e-mail step.

ChrisF 01-12-2010 07:06 AM

I do exactly that, and I still send both e-mails.

kinook 01-12-2010 07:23 AM

http://www.kinook.com/Forum/showthread.php?threadid=927

http://www.kinook.com/Forum/showthre...?threadid=3044

http://www.kinook.com/VisBuildPro/Ma...ipfeatures.htm

ChrisF 01-12-2010 07:53 AM

Just to be clear, when I call the subroutine, I set up the BUILD_STATUS macro in the subroutine call step, which sets up a temporary macro, and provide it a Passed or Failed value accordingly. Is this a correct way to do it?

kinook 01-12-2010 08:12 AM

Yes.


All times are GMT -5. The time now is 09:07 AM.


Copyright © 1999-2023 Kinook Software, Inc.