Don't request the Pipeline node details if the state is QUEUED
Created by: LinuxSuRen
What would you like to be added:
Don't request the Pipeline node details if the state is QUEUED. You can get the request and response below:
The API is v1alpha2/devops/testfkznq/pipelines/asdf/runs/3/
the response is:
{
"causeOfBlockage": "Build #2 is already in progress (ETA: 不可用)",
"causes": [
{
"_class": "io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl$BlueCauseImpl",
"shortDescription": "由用户 rick-admin 启动",
"userId": "rick-admin",
"userName": "rick-admin"
}
],
"id": "3",
"organization": "jenkins",
"pipeline": "asdf",
"result": "UNKNOWN",
"state": "QUEUED",
"type": "QueuedItem"
}
/area devops /priority high
The related backend issue is https://github.com/kubesphere/kubesphere/issues/3511
Attention Please don't forget to get the node details once the state is not queued.
Why is this needed: There are no node details exits when the Pipeline under the queued state.