How to add a new level to original URL in jenkins plugin?

7 views
Skip to first unread message

Baiyan Huang

unread,
Apr 27, 2015, 5:56:40 AM4/27/15
to jenkins...@googlegroups.com
Hi, All

This is about writing/changing a jenkins plugin - speicially on its URL.


Say I have a plugin which will generate a report, so I will have an Action:

class MyAction implements Action {
    public String getUrlName() {
       
return "a_sample_report";
    }
}

And I attached this Action to to project level, and I will access this report as:

job/$job_name/a_sample_report


But I want to make sure all reports URL could be uniquely identified, so I want the URL be like:

job/$job_name/reports/a_sample_report

Simply change getUrlName to return "reports/a_sample_report" doesn't work.

What is the right way to achieve this in jenkins?

Thanks very much!
Reply all
Reply to author
Forward
0 new messages