e45ffe249d
If a build job is requested with the "OFFLINE_NODE_WHEN_COMPLETE" parameter set to a true value, then mark the node as temporarily offline when the build is complete (regardless of the outcome). This facilitates single-use slaves (or slaves that need cleanup after their jobs). "Temporarily offline" was chosen as the most lightweight method of preventing new builds to facilitate either performing an external cleanup action (which would then online the existing node), or external deletion of the node. To accomplish this, the NodeAvailabilityMonitor unlock call is moved from the StartJobWorker gearman function out into the gearman worker so that the lock is held during the entire run of the job and further past the point where the StartJobWorker will set the node offline. Also, supply the name of the gearman worker (which includes the node name) with the build data to the client. This way the client will know which worker performed the job, and whose node may need to be manipulated if the offline flag is set. Change-Id: I5cda75eb44b26ec58e5f03d0aa980af09ee023f6 |
||
---|---|---|
.settings | ||
src | ||
.classpath | ||
.gitignore | ||
.gitreview | ||
.project | ||
.pydevproject | ||
LICENSE | ||
README.rst | ||
bsd.txt | ||
debug | ||
install-fast | ||
pom.xml | ||
run-fast |
README.rst
Overview
This plugin uses Gearman to support multiple Jenkins masters. More info can be found at https://wiki.jenkins-ci.org/display/JENKINS/Gearman+Plugin
Contributing
If you would like to contribute to the development of OpenStack, you must follow the steps in the "If you're a developer, start here" section of this page:
Once those steps have been completed, changes to OpenStack should be submitted for review via the Gerrit tool, following the workflow documented at:
Pull requests submitted through GitHub will be ignored.
Project site:
Patches are submitted via Gerrit at:
Bugs should be filed on Launchpad, not GitHub:
Cloning:
License
Copyright 2013 Hewlett-Packard Development Company, L.P.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.