>From the doc of BuildStepCompatibilityLayer [1]
/**
* @deprecated
* Use {@link #prebuild(AbstractBuild, BuildListener)} instead.
*/
public boolean prebuild(Build<?,?> build, BuildListener listener) {
[1]
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/BuildStepCompatibilityLayer.java
Robert Sandell
Sony Mobile Communications
Tel: +46 10 80 12721
sonymobile.com<http://sonymobile.com/>
From: [email protected] [mailto:[email protected]] On
Behalf Of Christopher Ambler
Sent: den 24 april 2014 18:43
To: [email protected]
Subject: How to hook pre-build?
Greetings!
I am using the hue-light plugin. One thing it does is hook the prebuild() event
to turn a light blue when a build kicks off. Not only does this appear to not
work with Maven projects, but it also has a compilation error with the latest
libraries. I'm told it's a deprecated interface, which would explain all of
that.
What I can't seem to find is the appropriate way to get code executed when a
project's build is kicked off.
I'd like to fix this bug.
Can anyone point me to the docs for this?
The plugin turns a light blue when a build starts, and then hooks the results
to turn the light green/yellow/red based on the status of the build. The latter
part works fine. It's the "hey, a build is starting, go blue" part that I need
to rework.
Many thanks in advance!
Christopher
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[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 Developers" 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.