* [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread.
* [JENKINS-38473] Remove leftover typing in wrong window
I translate:
ParameterizedJobMixIn.build_with_parameters=Build with Parameters
by:
ParameterizedJobMixIn.build_with_parameters=Lancer un build avec des paramètres
Currently a shell job has to make a HTTP call back to Jenkins to set
its build result as unstable. This is slow, requires the slave to
have access to the master's HTTP interface, and is fiddly. The
alternative, the TextFinder plugin, is no better.
Instead, allow a job to set the build result to unstable with a
return value.
Adds the Advanced parameter "unstableReturn" which, if non-zero,
is the code the script must return to set the build as unstable.
The CommandInterpreter.join(Proc p) method is supposed to be an extension
point to allow an UNSTABLE build result to be set, but it has no access to
the Build object with which to do so.
Add a getBuild() method that returns the build passed to perform(...). A better
API would be a new join(...) with more arguments, but that'd break out of tree
plugins that might already be using this for other purposes.
This code can come back, IMO, after @svanoort and I fix the unpleasant/broken
tight-coupling between this Jenkinsfile and Groovy code floating around in the
jenkinsci/packaging repository
Fix setting up slave agent port through -Djenkins.model.Jenkins.slaveAgentPort on startup.
Add -Djenkins.model.Jenkins.slaveAgentPortEnforce=true to enforce slave agent port on every start, and an administrative monitor in case the value is modified through UI.
* [JENKINS-35184] Servlet API dependent bits in a inner-class
This is in order to avoid loading ServletContextListener class
from slaves classloader.
* [JENKINS-35184] Don't use SystemProperties while initializing remote agents
This rolls back the previous commit and introduces a new way to construct
RingBufferLogHandler which avoids relying on SystemProperties to get the
default size.
* [JENKINS-35184] Mark SystemProperties as OnMaster only class
Adding `OnMaster` annotation does not prevent the class from being
loaded on remote agent but it gives a hint that this class should not
be used on a remote agent.
* [JENKINS-35184] Set SLAVE_LOG_HANDLER at the very beginning
In the previous code cleaning existing log handlers, SLAVE_LOG_HANDLER
is always null, as static fields are scoped by classloader.