[Anthill-pro] Beanshell and OR
Yanko, Curtis
curt_yanko at uhc.com
Mon Mar 31 12:37:30 CST 2008
Ok, after walking away and Ken straightening me out he came up with:
return Fail.unless(
Logic.or(
Logic.and(Output.contains("already exists"),
ExitCode.is(1)
),
ExitCode.is(0)
)
)
This is a pretty quirky need and not a 'good solution' but I have a team
with poorly organized build scripts and I am trying to use the multiple
source configs to create some separation. The 'right solution' is to
refractor the build process but until then...
===
-Curt
W: 860.702.9059
M: 860.881.2050
________________________________
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Yanko,
Curtis
Sent: Monday, March 31, 2008 11:38 AM
To: support at urbancode.com; AnthillPro user and support list.
Subject: [Anthill-pro] Beanshell and OR
I'm confuse as to why this isn't working but then I often need a sanity
with binary logic.
I have a project I want to have multiple Source Configs in the WF for.
They are all in the same repo and reference the same 'tags' area. So
when the SVN label step comes around it wants to apply the label once
for each entry.
We se this custom post processing script
return Fail.unless(
Logic.or(
Output.contains("already exists"),
ExitCode.is(0)
)
)
Yet the step fails??? "already exists" is indeed in the output but the
script does return a 1. Still, this is an OR so it should pass, no?
Curtis Yanko
UnitedHealth Group IT
Computer Services - AIS
Source->Build->Deploy
curt_yanko at uhc.com
450 Columbus Blvd
CT028-06SA
Hartford, CT 06103
work: 860.702.9059
mobile: 860.881.2050
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080331/df4a107b/attachment-0003.htm
More information about the Anthill-pro
mailing list