Create and Run Builds
The following mutation create and runs a build for a given test suite:
- Query
- cURL
mutation CreateAndRunBuild($testSuiteId: ObjectID!, $ciBuildId: String) {
createAndRunBuild(input: {
testSuiteId: $testSuiteId,
ciBuildId: $ciBuildId
}) {
build {
id
createdAt
status
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"mutation CreateAndRunBuild($testSuiteId: ObjectID!, $ciBuildId: String) { createAndRunBuild(input: { testSuiteId: $testSuiteId, ciBuildId: $ciBuildId }) { build { id createdAt status } } }"}' https://api.lumar.io/graphql
caution
$testSuiteId
is the only required field.$ciBuildId
is an optional string that you can set to identify your CI build.- Build status may be still
Queued
immediately after running the mutation. It will change toRunning
after Lumar starts crawling your website.