Ah oops, should have realized runwithscm is run based. Assume everything I
asked was run instead of project

On Fri., May 31, 2019, 12:17 a.m. 'Gavin Mogan' via Jenkins Developers, <
[email protected]> wrote:

> From a stapler point of view I have a few questions about RunWithSCM and
> other job interfaces.
>
> 1) Is there any reason its not exported? I'm assuming because the classes
> that actually implement it are exported?
> 2) Is there anything special about RunWithSCM and its kin that would help
> me find other useful implementations?
>
> With graphql, when fetching data, as I understand it, you need to say how
> to handle subclasses.
>
> query {
>   allJobs {
>     name
>     _class
>    ... on FreeStyleProject { // freestype stuff }
>    ... on OtherClass { other class stuff }
>   }
> }
>
> This means a client will have to know all the different types. Ideally I'd
> want to do it do it a bit more generically
>
> query {
>   allJobs {
>     name
>     _class
>    ... on FreeStyleProject { // scm stuff (legacy) }
>    ... on RunWithSCM { // modern scm stuff  }
>   }
> }
>
> I know I can hard code a list of interfaces I want to support, but thats
> not really expandable.
>
> Open to some suggestions, hopefully the scenario is explained properly.
>
> Gavin
>
> --
> 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/RklYADD2uKc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/a8d098b2-2d8c-4fca-9b4f-b5a62f68f962%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/a8d098b2-2d8c-4fca-9b4f-b5a62f68f962%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 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/CAG%3D_Dus4SS0HU-aN54wKeEo6PVapMdAt_MR2YgM7GUzH-oCfqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to