[Anthill-pro] stopping a job from running

Alexandre Borgia alexandre.borgia at ubisoft.com
Fri Apr 18 12:31:40 CDT 2008


Hi Emerson,

	I had the same problem and ended up adding the "NOT_NEEDED" state to our pre-conditions scripts, i.e. the "All Ancestor Jobs Success" script now looks like:

return JobStatus.allAncestorsIn( new JobStatusEnum[] { JobStatusEnum.SUCCESS, JobStatusEnum.NOT_NEEDED } );


-----Message d'origine-----
De : anthill-pro-bounces at lists.urbancode.com [mailto:anthill-pro-bounces at lists.urbancode.com] De la part de emerson cargnin
Envoyé : 18 avril 2008 13:24
À : AnthillPro user and support list.
Objet : [Anthill-pro] stopping a job from running

Hi

I have a job that for some projects I wouldn't want to run. I created
a property in the project and add a pre-condition script that returns
false when the property is set to true.
The problem is, it stops all the subsequent jobs also from running.
I know I could use the "parent job success script", but all the other
situation when a job fail I want the others to fail as well. The
pre-condition doesn't know the difference between failure from when
the job is ignored.

Does anyone know how to do it?

thanks
emerson
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro


More information about the Anthill-pro mailing list