jenkinsci / ontrack-plugin

ontrack plug-in for Jenkins
https://plugins.jenkins.io/ontrack/
MIT License
9 stars 6 forks source link

Use correct graphql query in graphql example. #58

Closed npirotte closed 5 years ago

npirotte commented 5 years ago

In https://github.com/jenkinsci/ontrack-plugin/blob/master/PIPELINE.md#ontrack-graphql-step example is

ontrackGraphQL(script: '{projects{name}}')

It's unclear if the graphql query should be

query {
  foo { bar }
}

Or foo { bar }

Example should be changed to

ontrackGraphQL(script: 'query { { projects { name } } }')
dcoraboeuf commented 5 years ago

Fixed by #60