+ * In a rare situation where a build can be reached from multiple paths, + * returning different URLs from this method based on situations might + * be desirable. + * + *
+ * If you override this method, you'll most likely also want to override
+ * {@link #getDisplayName()}.
+ */
+ public String getUpUrl() {
+ return Functions.getNearestAncestorUrl(Stapler.getCurrentRequest(),getParent())+'/';
+ }
+
/**
* List of users who committed a change since the last non-broken build till now.
*
diff --git a/core/src/main/resources/hudson/model/AbstractBuild/sidepanel.jelly b/core/src/main/resources/hudson/model/AbstractBuild/sidepanel.jelly
index 89f8780b8f9153e2a968b7946cdb424c841be12e..5a5143f89f4488745ec888cf7f44e11110c6a731 100644
--- a/core/src/main/resources/hudson/model/AbstractBuild/sidepanel.jelly
+++ b/core/src/main/resources/hudson/model/AbstractBuild/sidepanel.jelly
@@ -6,7 +6,7 @@