ks-devops icon indicating copy to clipboard operation
ks-devops copied to clipboard

DevOps Pipeline-task-status No information is displayed

Open yinmin2020 opened this issue 4 years ago • 6 comments

Describe the bug A clear and concise description of what the bug is. The audit function and condition function exist at the same time will not display the page For UI issues please also add a screenshot that shows the issue.

pipeline {
  agent {
    node {
      label 'nodejs'
    }

  }
  stages {
    stage('stage-pd895') {
      agent none
      steps {
        echo '2222'
      }
    }

    stage('default-0') {
      parallel {
        stage('build') {
          agent none
          when {
            environment name: 'namespace', value: 'test1'
          }
          steps {
            script {
              echo '1444'
            }

            input(message: '@sp0243  111', submitter: 'sp0243')
          }
        }

        stage('stage-bkfir') {
          agent none
          when {
            environment name: 'namespace', value: '111'
          }
          steps {
            echo '111'
          }
        }

      }
    }

  }
}

image image

  • *版本使用(KubeSphere / Kubernetes) * * kubesphere3.1.0

To Reproduce

  1. Create an assembly line

  2. Edit jenkinsfile

  3. Add environment variables (namespace)

  4. Run

  5. Running Status to Review Stage Click to enter the activity details page

Expected behavior I hope it can run normally

yinmin2020 avatar Dec 17 '21 07:12 yinmin2020

/area devops

LinuxSuRen avatar Dec 17 '21 07:12 LinuxSuRen

/priority high /cc @kubesphere/sig-devops /assign @harrisonliu5

LinuxSuRen avatar Dec 17 '21 07:12 LinuxSuRen

A back-end interface problem has been located. I'll post the relevant code blocks and screenshots image

[
 {
  "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl",
  "_links": {
   "self": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/6/"
   },
   "actions": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/6/actions/"
   },
   "steps": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/6/steps/"
   }
  },
  "displayName": "stage-pd895",
  "durationInMillis": 84,
  "id": "6",
  "result": "SUCCESS",
  "startTime": "2021-12-17T07:42:43.261+0000",
  "state": "FINISHED",
  "type": "STAGE",
  "edges": [
   {
    "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl$EdgeImpl",
    "id": "11",
    "type": "STAGE"
   }
  ],
  "restartable": true,
  "steps": [
   {
    "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineStepImpl",
    "_links": {
     "self": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/6/steps/7/"
     },
     "actions": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/6/steps/7/actions/"
     }
    },
    "actions": [
     {
      "_class": "org.jenkinsci.plugins.workflow.support.actions.LogStorageAction",
      "_links": {
       "self": {
        "_class": "io.jenkins.blueocean.rest.hal.Link",
        "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/6/steps/7/log/"
       }
      },
      "urlName": "log"
     }
    ],
    "displayDescription": "2222",
    "displayName": "Print Message",
    "durationInMillis": 6,
    "id": "7",
    "result": "SUCCESS",
    "startTime": "2021-12-17T07:42:43.261+0000",
    "state": "FINISHED",
    "type": "STEP",
    "aprovable": false
   }
  ]
 },
 {
  "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl",
  "_links": {
   "self": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/11/"
   },
   "actions": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/11/actions/"
   },
   "steps": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/11/steps/"
   }
  },
  "displayName": "default-0",
  "durationInMillis": 101,
  "id": "11",
  "result": "SUCCESS",
  "startTime": "2021-12-17T07:42:43.548+0000",
  "state": "FINISHED",
  "type": "STAGE",
  "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": "6",
  "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/sonarjf8nj/pipelines/1111/runs/4/nodes/14/"
   },
   "actions": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/14/actions/"
   },
   "steps": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/14/steps/"
   }
  },
  "displayName": "build",
  "durationInMillis": 95,
  "id": "14",
  "result": "UNKNOWN",
  "startTime": "2021-12-17T07:42:43.554+0000",
  "state": "PAUSED",
  "type": "PARALLEL",
  "firstParent": "11"
 },
 {
  "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineNodeImpl",
  "_links": {
   "self": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/15/"
   },
   "actions": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/15/actions/"
   },
   "steps": {
    "_class": "io.jenkins.blueocean.rest.hal.Link",
    "href": "/blue/rest/organizations/jenkins/pipelines/sonarjf8nj/pipelines/1111/runs/4/nodes/15/steps/"
   }
  },
  "displayName": "stage-bkfir",
  "durationInMillis": 299,
  "id": "15",
  "result": "NOT_BUILT",
  "startTime": "2021-12-17T07:42:43.559+0000",
  "state": "NOT_BUILT",
  "type": "PARALLEL",
  "firstParent": "11"
 }
]

yinmin2020 avatar Dec 17 '21 09:12 yinmin2020

@yinmin2020 Thanks for providing extra information. We will investigate this issue later.

JohnNiang avatar Dec 17 '21 09:12 JohnNiang

hi @JohnNiang any updates?

LinuxSuRen avatar Jan 12 '22 11:01 LinuxSuRen

/area console

LinuxSuRen avatar May 31 '22 09:05 LinuxSuRen