Thanks for the suggestions!  Also, the historical background makes this
much clearer.  Neither of those classes have getTrigger() implemented, any
tips for how to get build triggers from Job.class or WorkflowJob.class?

On Thu, Jan 5, 2017 at 2:19 PM, Jesse Glick <jgl...@cloudbees.com> wrote:

> On Thu, Jan 5, 2017 at 3:45 PM, Emory Penney <treadston...@gmail.com>
> wrote:
> > I've noticed that
> >
> > Jenkins.getInstance().jenkinsInstance.getAllItems(
> AbstractProject.class);
> >
> > doesn't seem to get me a list of Pipelines jobs.  I'm sure I need to use
> a
> > different class but I'm unclear which one.
>
> `Job.class` to get anything, or `WorkflowJob.class` to get Pipeline only.
>
> https://github.com/jenkinsci/pipeline-plugin/blob/master/
> DEVGUIDE.md#historical-background
>
> Currently there is not an official (i.e., API plugin) marker interface
> for `Job` subtypes that would correspond to the
> `FlowExecutionOwner.Executable` marker interface for `Run` subtypes,
> though I have been thinking about adding one as it would be useful on
> occasion.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Developers" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/jenkinsci-dev/PKbpT-84ie4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-dev/CANfRfr1V88O%3DB%2BotL%2BZNRutpGyTfjbdBQnUvyrjykxafJp
> %2BY_g%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CABch0G0RFA2skk3od%2BYLBpzU-HYmsMSYbS4ARR2N6KCb4xJUfw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to