paul.q
04/16/2021, 6:49 AMquery PipelineRun {
pipelineRunOrError(runId: "7b509160-1661-4a2a-bdf7-3f0b22e7fae5") {
__typename
... on PipelineRun {
runId
status
stepStats {
stepKey
status
}
}
}
}
Now, to get the error message, I see that the computeLogs member of PipelineRun requires a stepKey. Do I need a second call to get this? Something like:
query PipelineRun {
pipelineRunOrError(runId: "7b509160-1661-4a2a-bdf7-3f0b22e7fae5") {
__typename
... on PipelineRun {
computeLogs(stepKey: <step_that_failed>) {
stderr {
downloadUrl
}
}
}
}
}
Maybe I'm missing something? Doesn't seem possible to get what I want in one call.
Thanks
Paulalex
04/16/2021, 2:18 PMpaul.q
04/17/2021, 5:24 AM