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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/285c7bae-5e53-4f69-aa6b-28f00186315a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to