Hi,
This is going to be very simple if you have some general have knowledge.

In the groovy script, start with something along Jenkins.instance.
getItem(yourJobName) that will return a job instance.

Then look through the public javadoc to find what you want.

Hope it'll get you started.

Cheers
Le 6 oct. 2015 6:17 PM, "Shafi ulla" <[email protected]> a écrit :

> Am looking for groovy script
> given the job name as input,
> output : to list its upstream or downstream jobs.
>
> Any suggestion on how to do this ?
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/fd15dff5-e221-414c-a0c7-d63051892c93%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/fd15dff5-e221-414c-a0c7-d63051892c93%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS7qXEMqCCuMP%2BzrO9%2Bp%2B%3DReVWTjNcYTDp0-wCtHgP2rzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to