mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
added a method to get the absolute URL.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3050 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
cf11e8c490
commit
64e32dc658
1 file changed
+6
@@ -17,6 +17,7 @@ import hudson.util.IOException2;
|
||||
import hudson.util.XStream2;
|
||||
import org.kohsuke.stapler.StaplerRequest;
|
||||
import org.kohsuke.stapler.StaplerResponse;
|
||||
import org.kohsuke.stapler.Stapler;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
@@ -387,6 +388,11 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
|
||||
return project.getUrl()+getNumber()+'/';
|
||||
}
|
||||
|
||||
@Exposed(visibility=2,name="url")
|
||||
public final String getAbsoluteUrl() {
|
||||
return project.getAbsoluteUrl()+getNumber()+'/';
|
||||
}
|
||||
|
||||
/**
|
||||
* Unique ID of this build.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user