|
||||||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
The way I solved it for now is the following:
diff --git a/core/src/main/java/hudson/tasks/Fingerprinter.java b/core/src/main/java/hudson/tasks/Fingerprinter.java
index 6600bd4..d22ade7 100644
— a/core/src/main/java/hudson/tasks/Fingerprinter.java
+++ b/core/src/main/java/hudson/tasks/Fingerprinter.java
@@ -294,7 +294,7 @@
*/
public static final class FingerprintAction implements RunAction { - private final AbstractBuild build; + private AbstractBuild build; private static final Random rand = new Random(); @@ -356,6 +356,7 @@ }
public void onAttached(Run r) { + this.build = (AbstractBuild)r; }
public void onBuildComplete() {
diff --git a/core/src/main/java/hudson/model/RunMap.java b/core/src/main/java/hudson/model/RunMap.java
index 9207cfc..fad5b9d 100644
— a/core/src/main/java/hudson/model/RunMap.java
+++ b/core/src/main/java/hudson/model/RunMap.java
@@ -218,6 +218,10 @@
// if the build result file isn't in the directory, ignore it.
try {
R b = cons.create(d);
+ for (Action cur : b.getActions())
+ if (cur instanceof RunAction)
+ ((RunAction) cur).onAttached(b);
+
b.onLoad();
if (LOGGER.isLoggable(FINE))
LOGGER.log(FINE,"Loaded " + b.getFullDisplayName(),new ThisIsHowItsLoaded());