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

How to avoid "Checks if running on a Unix-like node" in BlueOcean output

    Details

    • Similar Issues:

      Description

      In our pipelines a step's output appeared recently:

      "Checks if running on a Unix-like node"

      We figured out with a single search, that it's the output of a function "isUnix()". Our problem is, that we are not calling this plugin. In the classic UI it's also visible.

      [Pipeline] isUnix
      

       Is it somehow possible to hide these messages in Blue Ocean. As I wrote, we are not calling this function, it has to pipeline or docker plugin.

      Jenkins 2.204.2 LTS

      • docker-commons:1.16
      • docker-workflow:1.21
      • pipeline-build-step:2.11

        Attachments

          Issue Links

            Activity

            Hide
            gabor_mandity Gabor Mandity added a comment -

            We have updated our Jenkins instances to 2.204.5 LTS, but the problem is still there.

            • docker-commons:1.16
            • docker-workflow:1.23
            • pipeline-build-step:2.11
            Show
            gabor_mandity Gabor Mandity added a comment - We have updated our Jenkins instances to 2.204.5 LTS, but the problem is still there. docker-commons:1.16 docker-workflow:1.23 pipeline-build-step:2.11
            Hide
            framillien Florian Ramillien added a comment - - edited

            Same problem for us, we have implemented a small wrapper around sh/bat commands, and devs see a lot of uneeded 'isUnix' steps.

            def call(cmd) {
              if (isUnix()) {
                sh cmd
              } else {
                // If we use "returnStdout", need to remove command itself from stdout to work like 'sh' command
                if (cmd instanceof Map && cmd.returnStdout) {
                  cmd.script = '@' + cmd.script
                }
                bat cmd
              }
            }

            If some steps can me marked as "invisible" (steps without side effects maybe ?) this could be great.

            Show
            framillien Florian Ramillien added a comment - - edited Same problem for us, we have implemented a small wrapper around sh/bat commands, and devs see a lot of uneeded 'isUnix' steps. def call(cmd) { if (isUnix()) { sh cmd } else { // If we use "returnStdout", need to remove command itself from stdout to work like 'sh' command if (cmd instanceof Map && cmd.returnStdout) { cmd.script = '@' + cmd.script } bat cmd } } If some steps can me marked as "invisible" (steps without side effects maybe ?) this could be great.

              People

              • Assignee:
                Unassigned
                Reporter:
                gabor_mandity Gabor Mandity
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: