Something like this in the script trigger:

!build.getLog(10).contains('Nothing downloaded')


On Wed, Apr 16, 2014 at 10:26 AM, Nicolas Daigneault <
[email protected]> wrote:

> Hello,
>
> I'm a new user of jenkins, I use it with munki/autopkg for the people who
> know what it is.  I have about 20 job that are running every day.
>
> I would like to have a notification by email each time that the string 
> "Nothing
> downloaded" *is not found* in the build result.  I found in the project
> build configuration that I can add a script to trigger the email, but I
> don't have any idea how to build my script.
>
> I know what I wan't, but not how to do it.  Can you help me with this?
>
> Thanks
>
> This is an example of ${BUILD_LOG} that I don't want notification, in some
> case I will have a success too but it will have something downloaded, in
> this case I would like a notification:
>
> Démarré par le projet amont "-- Lance tout -- 
> <http://csshod.cssh.qc.ca:8080/job/--%20Lance%20tout%20--/>" de numéro de 
> build 6 <http://csshod.cssh.qc.ca:8080/job/--%20Lance%20tout%20--/6>
> originally caused by:
>  Lancé par une alarme périodique
> Building in workspace /Users/Shared/Jenkins/Home/workspace/AdobeReader
> [AdobeReader] $ /bin/sh -xe 
> /var/folders/SE/SE3tZHqxGySS841gCbBcf++++Do/-Tmp-/hudson4682873127245679909.sh
> + /usr/local/bin/autopkg run AdobeReader.munki
> Processing AdobeReader.munki...
>
> Nothing downloaded, packaged or imported.
> Finished: SUCCESS
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to