You should google for "Jenkins groovy script console".

That should be something like (untested) "Jenkins.instance.getItem('
yourjob').isEnabled()"

And doing this for all of them would be along

Jenkins.instance.getItems(Job.class).each { job ->
  println job.name + " => " + job.enabled
}

2017-03-21 20:39 GMT+01:00 Raj <[email protected]>:

> I would like to know if there is a way to use jenkins cli jar file and
> find out if a given job is enabled or currently disabled.
> i have about 700 jobs on the server and would like to know the list of
> enabled and disabled jobs
>
> Thank you very much for your time.
> regards,
> Raj
>
> --
> 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/ms
> gid/jenkinsci-users/1f3e4cf9-64ab-48cb-8c36-7039b0ae99b4%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/1f3e4cf9-64ab-48cb-8c36-7039b0ae99b4%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/CANWgJS4vSn5sTCx6Z8ypND8%3DzO2MajcL6TMGHnLtYav0iGQPeg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to