Jenkins.getInstance().getItemByFullName("name",
Job.class).getLastCompletedBuild().getId()

On Thu, May 7, 2015 at 9:18 AM, Samith Dassanayake <[email protected]>
wrote:

> Hi all,
> I am new to jenkins plugin development and I want to access job data from
> a jenkins plugin.
> For an example I want to get lastCompletedBuild, lastCompletedBuild
> id, lastCompletedBuild url , lastCompletedBuild ,lastCompletedBuild id
> , lastCompletedBuild url etc...
> How can get the job and access those data from a plugin.. All I have is
> job name. Please help me
>
> Thanks,
> Samith
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/cd926022-ea56-414e-b3bc-7e5b5b9cc27f%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/cd926022-ea56-414e-b3bc-7e5b5b9cc27f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS0U%3D%2BG1K31RMOCxePo67esH%3D2AJBsZmtYAz4MeDFD_j3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to