請問 KubeSphere DevOps 有辦法去抓到一些使用者資訊(name、email address)嗎

像是Jenkins這個插件https://www.jenkins.io/doc/pipeline/steps/email-ext/
可以去抓到共編的pipeline有哪些人以及一些情景

    stoneshi-yunify
    我想要的是這個執行完CI結果的username等等的

    這有api之類的東西可以抓到嗎?

      cici kubectl get pipelinerun, 注解 “devops.kubesphere.io/creator” 标明了本次流水线运行发起者

      stoneshi-yunify

      您好,請教一下
      我在 jenkins console 發現 KubeSphere 有這個插件

      我在pipeline中使用它去做寄信件成功

      但是寫成step template 卻會出現

      Internal Server Error

      ClusterStepTemplate.devops.kubesphere.io “emailext” not found

      這樣是代表這插件無法使用嗎?

        cici kubectl get ClusterStepTemplate.devops.kubesphere.io 图形化编辑流水线中的每个步骤都对应一个 ClusterStepTemplate 对象。

          stoneshi-yunify
          這個template有存在步驟UI裡面
          不過我撰寫完實際要用的時候都會變成不是聲明式

          apiVersion: devops.kubesphere.io/v1alpha3
          kind: ClusterStepTemplate
          metadata:
            annotations:
              devops.kubesphere.io/displayNameEN: fii-Mail
              devops.kubesphere.io/displayNameZH: fii-Mail
              meta.helm.sh/release-name: devops-agent
              meta.helm.sh/release-namespace: kubesphere-devops-system
            labels:
              app.kubernetes.io/managed-by: Helm
              kubesphere.io/extension-ref: devops
              step.devops.kubesphere.io/category: General
            name: my-mail
          spec:
            parameters:
              - display: Recipient
                name: to
                type: string
              - display: CC
                name: cc
                type: string
              - display: Subject
                name: subject
                required: true
                type: string
              - display: Body
                name: body
                required: true
                type: text
            runtime: dsl
            template: |
              {
                "arguments": {
                  "isLiteral": false,
                  "value": "(attachLog: true, body: '{{.param.body}}', subject: '{{.param.subject}}', to: '{{.param.to}}', cc: '{{.param.cc}}'))"
                },
                "name": "emailext"
              }

          我在pipeline直接寫入下方的step就能正常執行

          emailext(attachLog: true, body: 'The build process is completed, please refer the attachment for your reference if need', subject: 'Build Completed', to: 'mymail123@gmail.com')

            cici 对,这个插件devops-jenkins是装了的。所以你前面遇到的错误,大概率是因为你的jenkinsfile写的不正确。

            2 个月 后

            一看这个问题就是台湾的兄弟伙提交的,在这么多问题中异常耀眼