Re: Have job set ball additional ball color

2016-03-11 Thread Baptiste Mathus
If you're just gonna lookup a string in the logs, BTW, you might find the
Text Finder Plugin a wee bit simpler.
My 2 cents
Le 9 mars 2016 1:49 PM, "Daniel Beck"  a écrit :

> I solved similar problems in the past by making sure a line in the build
> log states e.g. "Nothing downloaded", and then use a plugin like Groovy
> Postbuild to look for that line, and if it was encountered, set the build
> result to Unstable (assuming that right now, you only have Stable and
> Failed builds).
>
> On 09.03.2016, at 07:31, Matt Childress  wrote:
>
> > We use Jenkins CI along with two Python scripts AutoPkg/Aamporter and
> Munki to manage macintoshes (Jenkins controls 5x daily runs of AutoPkg and
> Aamporter which check for 3rd party software updates and import them into
> the munki software repository)
> >
> > Most of the time the jobs are successful and nothing happens (no new
> software found and downloaded).
> >
> > Jenkins ROCKS for this, and we can easily disable a job when the
> software vendor breaks/changes their distribution method (is there an
> option/plug-in for "re-enable in x number of days?)"
> >
> > BUT a successful job (nothing downloaded) and a successful job (new item
> downloaded) both result in a blue ball.  This makes it hard to find the
> downloads in the console output page.
> >
> > What I'd like to be able to do is have a job set a custom icon via
> script if it's downloaded something (I've already got an email script
> taking care of the logic)
> >
> > Any pointers to how-to (including "you're going about it wrong")?
> >
> > Many thanks,
> > M@
> >
> > --
> > 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.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/fde3e45a-9906-46b7-935f-ec270c494289%40googlegroups.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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/D362BC1B-FC0A-4404-96A6-2F323507F263%40beckweb.net
> .
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS78H92yss1FfWU2MM4tiwxpbvLie5NVbDV%3DqT_3mtBkvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Have job set ball additional ball color

2016-03-09 Thread Matt Childress
Sweet!  Thanks I'll give that methodology a go -- do you have any sort of 
description on how your Jenkins/Aamporter/Autopkg stuff is setup?  I'm all 
for sharing/not reinventing the wheel (and improving the wheel).  My 
current e-mail script is here: 
 https://github.com/childrss/jenkins-autopkg-email 

I've yet to build one for Aamporter, but that's on my "to-do" list.  

Improvements/Critques on programming style welcomed!

M@

On Wednesday, March 9, 2016 at 6:49:33 AM UTC-6, Daniel Beck wrote:
>
> I solved similar problems in the past by making sure a line in the build 
> log states e.g. "Nothing downloaded", and then use a plugin like Groovy 
> Postbuild to look for that line, and if it was encountered, set the build 
> result to Unstable (assuming that right now, you only have Stable and 
> Failed builds). 
>
> On 09.03.2016, at 07:31, Matt Childress  
> wrote: 
>
> > We use Jenkins CI along with two Python scripts AutoPkg/Aamporter and 
> Munki to manage macintoshes (Jenkins controls 5x daily runs of AutoPkg and 
> Aamporter which check for 3rd party software updates and import them into 
> the munki software repository) 
> > 
> > Most of the time the jobs are successful and nothing happens (no new 
> software found and downloaded). 
> > 
> > Jenkins ROCKS for this, and we can easily disable a job when the 
> software vendor breaks/changes their distribution method (is there an 
> option/plug-in for "re-enable in x number of days?)" 
> > 
> > BUT a successful job (nothing downloaded) and a successful job (new item 
> downloaded) both result in a blue ball.  This makes it hard to find the 
> downloads in the console output page. 
> > 
> > What I'd like to be able to do is have a job set a custom icon via 
> script if it's downloaded something (I've already got an email script 
> taking care of the logic) 
> > 
> > Any pointers to how-to (including "you're going about it wrong")? 
> > 
> > Many thanks, 
> > M@ 
> > 
> > -- 
> > 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 . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/fde3e45a-9906-46b7-935f-ec270c494289%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/269ce6c4-54d4-4c76-aaf4-082e69d3f1ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Have job set ball additional ball color

2016-03-09 Thread Daniel Beck
I solved similar problems in the past by making sure a line in the build log 
states e.g. "Nothing downloaded", and then use a plugin like Groovy Postbuild 
to look for that line, and if it was encountered, set the build result to 
Unstable (assuming that right now, you only have Stable and Failed builds).

On 09.03.2016, at 07:31, Matt Childress  wrote:

> We use Jenkins CI along with two Python scripts AutoPkg/Aamporter and Munki 
> to manage macintoshes (Jenkins controls 5x daily runs of AutoPkg and 
> Aamporter which check for 3rd party software updates and import them into the 
> munki software repository)
> 
> Most of the time the jobs are successful and nothing happens (no new software 
> found and downloaded). 
> 
> Jenkins ROCKS for this, and we can easily disable a job when the software 
> vendor breaks/changes their distribution method (is there an option/plug-in 
> for "re-enable in x number of days?)"
> 
> BUT a successful job (nothing downloaded) and a successful job (new item 
> downloaded) both result in a blue ball.  This makes it hard to find the 
> downloads in the console output page. 
> 
> What I'd like to be able to do is have a job set a custom icon via script if 
> it's downloaded something (I've already got an email script taking care of 
> the logic)
> 
> Any pointers to how-to (including "you're going about it wrong")?
> 
> Many thanks,
> M@
> 
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/fde3e45a-9906-46b7-935f-ec270c494289%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/D362BC1B-FC0A-4404-96A6-2F323507F263%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Have job set ball additional ball color

2016-03-08 Thread Matt Childress
We use Jenkins CI along with two Python scripts AutoPkg/Aamporter and Munki to 
manage macintoshes (Jenkins controls 5x daily runs of AutoPkg and Aamporter 
which check for 3rd party software updates and import them into the munki 
software repository)

Most of the time the jobs are successful and nothing happens (no new software 
found and downloaded). 

Jenkins ROCKS for this, and we can easily disable a job when the software 
vendor breaks/changes their distribution method (is there an option/plug-in for 
"re-enable in x number of days?)"

BUT a successful job (nothing downloaded) and a successful job (new item 
downloaded) both result in a blue ball.  This makes it hard to find the 
downloads in the console output page. 

What I'd like to be able to do is have a job set a custom icon via script if 
it's downloaded something (I've already got an email script taking care of the 
logic)

Any pointers to how-to (including "you're going about it wrong")?

Many thanks,
M@

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fde3e45a-9906-46b7-935f-ec270c494289%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.