[Anthill-pro] Secondary WF's
Ryan Smith
rws at urbancode.com
Tue Nov 27 10:10:22 CST 2007
Curtis,
Here is an example we use to require a particular status:
return new Criteria() {
public boolean matches(Object obj)
throws Exception {
return BuildLifeLookup.getCurrent().hasStatus(StatusLookup.getStatusByName("passed-tests"));
}
}
Ryan Smith
Yanko, Curtis wrote:
> Ok, I'm looking at scripting and as always I get confused as nothing
> seems clear to me.
>
> I would assume I need a WF lookup helper and Status lookup helper if I
> am to make a Job Pre-Condition Script I can use.
>
> So, BuildLifeLookup.getCurrent(() seems handy
>
> ..but then I don't where I could use that to determine the current
> status of this current build life???
>
> ===
> -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:* Tuesday, November 27, 2007 10:01 AM
> *To:* AnthillPro user and support list.
> *Subject:* [Anthill-pro] Secondary WF's
>
> How can I prohibit Secondary WF's from being run (or even available) on
> for failed builds? I don't see an easy way to limit by status and I
> don't want people deploying failed builds or Archiving Dev builds.
>
> I'm guessing I could evaluate a script but then the WF would still show
> up to be run and I would rather not present it at all.
>
> ===
> -Curt
> W: 860.702.9059
> M: 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.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
--
===========================================================
Ryan Smith. 2044 Euclid Ave., Suite 600
Lead Developer Cleveland, Ohio 44115
Urbancode, Inc.
email: rws at urbancode.com
web: www.urbancode.com phone: 216-858-9000
web: www.anthillpro.com fax: 216-858-9602
===========================================================
More information about the Anthill-pro
mailing list