This looks good and yes, the step can have multiple methods. > On Jan 16, 2019, at 6:43 PM, martinda <[email protected]> wrote: > > I am re-working the 3 REST API GSoC proposals... > > How does this example look like in terms of respecting the current execution > engine requirements: > > bitbucketClient.withServer(url: “foo://bitbucket”, project: project, repo: > repo, crendentialsId: “mybitbucket”) { > def response = bitbucketClient.pullRequestApi(‘changes’, prNumber) > echo response.errors // a list > echo response.errors[0].context // a string > echo response.errors[0].message // a string > echo response.changes // a list > echo response.changes[0].path // a string > echo response.changes[0].srcPath // a string > } > > The response object only ever holds simple data types. > > Other question: Is it okay for the step to have multiple methods, but they > only return simple data types? > For example: bitbucketClient.pullRequestApi(prNumber, 'changes'); > bitbucketClient.branchApi('list') > > Martin > > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/285c7bae-5e53-4f69-aa6b-28f00186315a%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/285c7bae-5e53-4f69-aa6b-28f00186315a%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <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/AB1A3360-D69E-4FC1-8913-3B091461ACCA%40gmail.com. For more options, visit https://groups.google.com/d/optout.
