You can add some debugging in, I didn't say exactly that would work. You
may need to tweek it for it to really work.
On Apr 17, 2014 11:09 AM, "Nicolas Daigneault" <[email protected]>
wrote:

> No it don't seem to work, I receive an email every time even if the term
> Nothing downloaded is found or not.
>
>
> This is now my log
>
> Démarré par l'utilisateur xadmin <http://csshod.cssh.qc.ca:8080/user/xadmin>
> Building in workspace /Users/Shared/Jenkins/Home/workspace/Chrome
> No emails were triggered.
> [Chrome] $ /bin/sh -xe 
> /var/folders/SE/SE3tZHqxGySS841gCbBcf++++Do/-Tmp-/hudson1900721364902092569.sh
> + /usr/local/bin/autopkg run GoogleChrome.munki
> Processing GoogleChrome.munki...
>
> Nothing downloaded, packaged or imported.
> Email was triggered for: Script
> Sending email for trigger: Script
> Sending email to: nicolas.daigneault@****.***
> Finished: SUCCESS
>
>
>
> On Wednesday, April 16, 2014 6:54:04 PM UTC-4, slide wrote:
>>
>> 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.
>

-- 
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