Not likely, as there is no view name for a job.  It’s an N:M relationship 
between jobs and views: a view can have any number of jobs, and a job can have 
any number of views.  I suspect that jobs don’t “know” what view they’re in.

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Subashini Unny
Sent: Wednesday, July 16, 2014 2:38 PM
To: jenkinsci-users@googlegroups.com
Subject: Java API to get the view name

Is there a Java API in Jenkins to get the view name for a job? I did see that 
there is a way to get the list of all views and then the list of items in each 
view and can check if my job is present in that list but this is not very 
efficient and also might have performance implications.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.


Click 
here<https://www.mailcontrol.com/sr/r0Mp98k3cyjGX2PQPOmvUihCLhWP7Wj9lqZ5e3i0gKQuDn23SbCOpXbbFirEORjv72UkG9eV!fqqE4naC2k80A==>
 to report this email as spam.

________________________________
This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to