I don't know how to check the reason a job was launched, nor how to use that reason in another plugin. Sorry...
>________________________________ > From: Varghese Renny <varghesekre...@gmail.com> >To: jenkinsci-users@googlegroups.com >Sent: Thursday, July 26, 2012 7:02 AM >Subject: Re: Where two dependent job relation can seen in jenkins folder > > >So if it is represented using xml then how can i check the condition like >build reason of this job is due to upstream cause.. >Actually i needed to write like that in pre script of email-ext plugin. > > > > > > >Thanks in Advance, >varghese > > >