Have job set ball additional ball color

44 views
Skip to first unread message

Matt Childress

unread,
Mar 9, 2016, 1:31:06 AM3/9/16
to Jenkins Users
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@

Daniel Beck

unread,
Mar 9, 2016, 7:49:33 AM3/9/16
to jenkins...@googlegroups.com
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).
> --
> 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.

Matt Childress

unread,
Mar 9, 2016, 8:59:03 PM3/9/16
to Jenkins Users, m...@beckweb.net
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@

Baptiste Mathus

unread,
Mar 11, 2016, 3:11:12 AM3/11/16
to jenkins...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages