提交 acaf41aa 编写于 作者: K Kohsuke Kawaguchi

Merge branch 'rc'

......@@ -31,6 +31,9 @@ package hudson.model;
public interface RunAction extends Action {
/**
* Called after the build is loaded and the object is added to the build list.
*
* Because {@link RunAction}s are persisted with {@link Run}, the implementation
* can keep a reference to {@link Run} in a field (which is set via {@link #onAttached(Run)})
*/
void onLoad();
......
......@@ -94,6 +94,14 @@ public class ItemListener implements ExtensionPoint {
public void onRenamed(Item item, String oldName, String newName) {
}
/**
* @since 1.446
* Called at the begenning of the orderly shutdown sequence to
* allow plugins to clean up stuff
*/
public void onBeforeShutdown() {
}
/**
* Registers this instance to Hudson and start getting notifications.
*
......
......@@ -2433,6 +2433,9 @@ public class Jenkins extends AbstractCIBase implements ModifiableItemGroup<TopLe
* Called to shut down the system.
*/
public void cleanUp() {
for (ItemListener l : ItemListener.all())
l.onBeforeShutdown();
Set<Future<?>> pending = new HashSet<Future<?>>();
terminating = true;
for( Computer c : computers.values() ) {
......
......@@ -115,7 +115,7 @@ THE SOFTWARE.
<dependency>
<groupId>org.jenkins-ci.modules</groupId>
<artifactId>sshd</artifactId>
<version>1.1</version>
<version>1.2</version>
</dependency>
<!-- offline profiler API when we need it -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册