[Anthill-pro] Using properties as a condition to bypass a step

Uldis Karlovs-Karlovskis uldisk at ctco.lv
Fri Apr 11 00:43:38 CDT 2008


That`s why I`m using special agent filter script which filters out agent on which the first Job on running workflow was run, so that is not a problem and no extra overhead is needed.

 

Regards,

Uldis, C. T. Co

 <mailto:uldis.karlovs-karlovskis at ctco.lv> uldis.karlovs-karlovskis at ctco.lv

 

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Alexandre Borgia
Sent: ceturtdiena, 2008. gada 10. aprīlī 19:23
To: AnthillPro user and support list.
Subject: RE: [Anthill-pro] Using properties as a condition to bypass a step

 

The way I’m doing it right now is either by putting the logic into the build scripts whenever possible (and pass the property) or use a general Shell step where I can use constructs like these to define what must be executed:

 

${bsh:”1”.equals(PropertyLookup.get(“doSomething”)) ? “doSomething.exe” : “echo skipped step doSomething …” }

 

… maybe not the a great syntax to look at but it works fairly well.

 

The problem with using different jobs is that it won’t necessarily run on the same agent or in the same context and might give some extra overhead (i.e. need to sync the repository again etc.)

 

            - Alexandre Borgia

 

  _____  

De : anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com] De la part de Uldis Karlovs-Karlovskis
Envoyé : 10 avril 2008 02:10
À : 'AnthillPro user and support list.'
Objet : RE: [Anthill-pro] Using properties as a condition to bypass a step

 

I`ve found an only way to accomplish this by splitting those steps into Jobs, so after then You can use Job Precondition scripts.

 

Regards,

Uldis, C. T. Co

 <mailto:uldis.karlovs-karlovskis at ctco.lv> uldis.karlovs-karlovskis at ctco.lv

 

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Tyler Andreasen
Sent: ceturtdiena, 2008. gada 10. aprīlī 0:43
To: anthill-pro at lists.urbancode.com
Subject: [Anthill-pro] Using properties as a condition to bypass a step

 

I have a job with several tasks.  I want to have a Boolean property (0 or 1) such that if set to 0, certain steps in a job will NOT run.  Is there any practical way to do this using properties?  Or is there another way.  

 

Thanks, 

T. Andreasen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080411/dcdf5108/attachment.htm


More information about the Anthill-pro mailing list