Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64238

Label is showing sh script's content instead of "Shell script"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: workflow-cps-plugin
    • Environment:
    • Similar Issues:

      Description

      Hello,

      Since the update of Jenkins (2.235.3 LTS) and Pipeline: Nodes and Processes (workflow-durable-task-step) plugin 2.35 to Jenkins (2.2249.3 LTS) and Pipeline: Nodes and Processes (workflow-durable-task-step) plugin 2.36

      I have a different behaviour with label of sh steps in Blue Ocean

      Before update label was "Shell Script" :

      After update the label is composed by a description and a name, the sh script's content is displayed in the description and the label name is "Shell script" :

      I tried to use label: 'Hide me' in my sh step but It will change only the label name "Shell script" and not the label description (sh script's content)

      I think this behaviour is not normal, maybe due to PR 121 in 2.36 version ?

      Please it is possible to fix it or propose an option to choose if we want "Shell script" or sh script's content ?

      Thanks,

      Best regards,

      Steven

        Attachments

          Activity

          DeadlockState Steven Charrier created issue -
          DeadlockState Steven Charrier made changes -
          Field Original Value New Value
          Description Hello,

          Since the update of Jenkins (2.235.3 LTS) and Pipeline: Nodes and Processes (*workflow-durable-task-step*) plugin *2.35* *to* Jenkins (2.2249.3 LTS) and Pipeline: Nodes and Processes (*workflow-durable-task-step*) plugin *2.36*

          I have a different behaviour with label description in Blue Ocean

           

          Before update label was "Shell Script" :

          !image-2020-11-16-22-55-02-802.png!

          After update the label is composed by a description and a name, the script is visible in the description and the label name is "Shell script" :

          !image-2020-11-16-22-58-51-605.png!

          I tried to use label: 'Hide me' in my [sh step|https://www.jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#sh-shell-script] but It will change only the label name "Shell script" and not the label description (script)

          I think this behaviour is not normal, maybe due to [PR 121|https://github.com/jenkinsci/workflow-durable-task-step-plugin/pull/121] in [2.36 version|https://github.com/jenkinsci/workflow-durable-task-step-plugin/blob/master/CHANGELOG.md] ?

          Please it is possible to fix it or propose an option to choose if we want Shell script or script content ?

          Thanks,

          Best regards,

          Steven
          Hello,

          Since the update of Jenkins (2.235.3 LTS) and Pipeline: Nodes and Processes (*workflow-durable-task-step*) plugin *2.35* *to* Jenkins (2.2249.3 LTS) and Pipeline: Nodes and Processes (*workflow-durable-task-step*) plugin *2.36*

          I have a different behaviour with label of sh steps in Blue Ocean



          Before update label was "Shell Script" :

          !image-2020-11-16-22-55-02-802.png!

          After update the label is composed by a description and a name, the sh script's content is displayed in the description and the label name is "Shell script" :

          !image-2020-11-16-22-58-51-605.png!

          I tried to use label: 'Hide me' in my [sh step|https://www.jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#sh-shell-script] but It will change only the label name "Shell script" and not the label description (sh script's content)

          I think this behaviour is not normal, maybe due to [PR 121|https://github.com/jenkinsci/workflow-durable-task-step-plugin/pull/121] in [2.36 version|https://github.com/jenkinsci/workflow-durable-task-step-plugin/blob/master/CHANGELOG.md] ?

          Please it is possible to fix it or propose an option to choose if we want "Shell script" or sh script's content ?

          Thanks,

          Best regards,

          Steven
          Summary Label is showing sh script content instead of "Shell script" Label is showing sh script's content instead of "Shell script"
          carroll Carroll Chiou made changes -
          Component/s workflow-cps-plugin [ 21713 ]
          Component/s workflow-durable-task-step-plugin [ 21715 ]
          pipeline_security_members CloudBees Pipeline Security made changes -
          Comment [ This is actually the intended behavior as the improved handling of secrets via `workflow-cps` allowed Jenkins to hide only the secrets and allow the script itself to be viewed. If the secrets were being exposed, then that would be a different issue. ]

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            DeadlockState Steven Charrier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: