ks-devops
ks-devops copied to clipboard
Incorrect time duration on pipeline log dialog
trafficstars
What is version of KubeSphere DevOps has the issue?
v3.3.0
How did you install the Kubernetes? Or what is the Kubernetes distribution?
v1.24.4+k3s1
What happened?
The duration time is incorrect.
Relevant log output
Get http://localhost:30180/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/
And get this json which duration is already incorrect.
[
{
"_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl",
"_links": {
"self": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/11/"
},
"actions": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/11/actions/"
},
"steps": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/11/steps/"
}
},
"actions": [],
"displayDescription": null,
"displayName": "test",
"durationInMillis": 12,
"id": "11",
"input": null,
"result": "SUCCESS",
"startTime": "2022-09-22T11:47:27.082+0000",
"state": "FINISHED",
"type": "STAGE",
"causeOfBlockage": null,
"edges": [
{
"_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl$EdgeImpl",
"id": "14",
"type": "PARALLEL"
},
{
"_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl$EdgeImpl",
"id": "15",
"type": "PARALLEL"
}
],
"firstParent": null,
"restartable": true
},
{
"_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl",
"_links": {
"self": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/14/"
},
"actions": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/14/actions/"
},
"steps": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/14/steps/"
}
},
"actions": [],
"displayDescription": null,
"displayName": "step-1",
"durationInMillis": 10,
"id": "14",
"input": null,
"result": "ABORTED",
"startTime": "2022-09-22T11:47:27.084+0000",
"state": "FINISHED",
"type": "PARALLEL",
"causeOfBlockage": null,
"edges": [],
"firstParent": "11",
"restartable": false
},
{
"_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl",
"_links": {
"self": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/15/"
},
"actions": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/15/actions/"
},
"steps": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/my-devops-project6gc7h/pipelines/test/runs/11/nodes/15/steps/"
}
},
"actions": [],
"displayDescription": null,
"displayName": "step-2",
"durationInMillis": 9,
"id": "15",
"input": null,
"result": "ABORTED",
"startTime": "2022-09-22T11:47:27.085+0000",
"state": "FINISHED",
"type": "PARALLEL",
"causeOfBlockage": null,
"edges": [],
"firstParent": "11",
"restartable": false
}
]
Additional information
It cause by the upstream blueocean-plugin.