Re: email-ext when a string is found in ${BUILD_LOG}

2014-04-17 Thread Slide
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" 
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 
> Building in workspace /Users/Shared/Jenkins/Home/workspace/Chrome
> No emails were triggered.
> [Chrome] $ /bin/sh -xe 
> /var/folders/SE/SE3tZHqxGySS841gCbBcfDo/-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 <
>> nicolas.d...@gmail.com> 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 -- 
>>> " de numéro de 
>>> build 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/SE3tZHqxGySS841gCbBcfDo/-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 jenkinsci-use...@googlegroups.com.
>>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: email-ext when a string is found in ${BUILD_LOG}

2014-04-17 Thread Nicolas Daigneault
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 
Building in workspace /Users/Shared/Jenkins/Home/workspace/Chrome
No emails were triggered.
[Chrome] $ /bin/sh -xe 
/var/folders/SE/SE3tZHqxGySS841gCbBcfDo/-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 <
> nicolas.d...@gmail.com > 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 -- 
>> " de numéro de 
>> build 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/SE3tZHqxGySS841gCbBcfDo/-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 jenkinsci-use...@googlegroups.com .
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: email-ext when a string is found in ${BUILD_LOG}

2014-04-16 Thread Slide
Something like this in the script trigger:

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


On Wed, Apr 16, 2014 at 10:26 AM, Nicolas Daigneault <
nicolas.daignea...@gmail.com> 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 -- 
> " de numéro de 
> build 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/SE3tZHqxGySS841gCbBcfDo/-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 jenkinsci-users+unsubscr...@googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


email-ext when a string is found in ${BUILD_LOG}

2014-04-16 Thread Nicolas Daigneault
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 -- 
" de numéro de build 
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/SE3tZHqxGySS841gCbBcfDo/-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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.