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

Devops Pipeline, choice type parameter, click on the run button, popbox selection interface has been input box

Open xiaohezi205 opened this issue 2 years ago • 12 comments

Operating System Information:Centos7 Kubernetes version:v1.21.5 KubeSphere version:v3.2.1

question:Devops Pipeline, choice type parameter, click on the run button, popbox selection interface has been input box.The following figure: image image image

xiaohezi205 avatar Mar 24 '22 00:03 xiaohezi205

/kind bug

LinuxSuRen avatar Apr 08 '22 07:04 LinuxSuRen

I cannot find the corresponding PRs against this issue. But I'm pretty sure this issue was fixed in v3.3.0. /close

LinuxSuRen avatar May 17 '22 06:05 LinuxSuRen

@LinuxSuRen: Closing this issue.

In response to this:

I cannot find the corresponding PRs against this issue. But I'm pretty sure this issue was fixed. /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

ks-ci-bot avatar May 17 '22 06:05 ks-ci-bot

我很确认3.3.0,这个bug依然存在,步骤如下:采用的是1master 2node 重新安装的kubesphere3.3.0, 安装完成后,开启了devops,流水线项目,用的是代码根目录下的Jenkinsfile,第一次创建完时,是没有选项的,运行一次加载后,再次运行就是这样明明是choice,但是实际是个string,唉 两个版本了 还是这样

xiaohezi205 avatar Jul 05 '22 03:07 xiaohezi205

I'm still not able to reproduce it in v3.3.0. See the following screenshot.

image

See my sample file:

pipeline {
  agent any
  stages {
    stage('stage-84kwt') {
      steps {
        echo 'ddd'
      }
    }

  }
  parameters {
    choice(name: 'Environments', choices: ['dev', 'test', 'pre', 'pre2', 'prod'], description: 'desc')
    choice(name: 'ServicesDeploy', choices: ['case-gateway', 'case-auth', 'case-admin', 'case-user', 'case-report', 'case-search', 'case-applet', 'all'], description: 'service')
  }
}

LinuxSuRen avatar Jul 05 '22 05:07 LinuxSuRen

Finally, I found out it has problems when this is a multi-branch pipeline. It looks like a front-end issue due to the response from the backend is correct.

image

/area console

LinuxSuRen avatar Jul 05 '22 05:07 LinuxSuRen

奇怪,这次我完全用了你的pipeline脚本,还是没有出现下拉,这是为什么呢?而且我看社区中也有人提了同样的问题。如下图: 1657000557081 1657000582732 1657000623608

xiaohezi205 avatar Jul 05 '22 05:07 xiaohezi205

奇怪,这次我完全用了你的pipeline脚本,还是没有出现下拉,这是为什么呢?而且我看社区中也有人提了同样的问题

hi @xiaohezi205 As I mentioned before image

LinuxSuRen avatar Jul 05 '22 06:07 LinuxSuRen

/area console

LinuxSuRen avatar Jul 05 '22 06:07 LinuxSuRen

/assign

EliChen95 avatar Jul 07 '22 02:07 EliChen95

/kind need-to-verify

LinuxSuRen avatar Aug 10 '22 02:08 LinuxSuRen

Issue fixed in v3.3.1-rc.1

wenxinll avatar Sep 01 '22 07:09 wenxinll