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!