[JIRA] (JENKINS-61195) How to avoid "Checks if running on a Unix-like node" in BlueOcean output

18 views
Skip to first unread message

gabor.mandity@t-systems.com (JIRA)

unread,
Feb 24, 2020, 4:24:02 AM2/24/20
to jenkinsc...@googlegroups.com
Gabor Mandity created an issue
 
Jenkins / Task JENKINS-61195
How to avoid "Checks if running on a Unix-like node" in BlueOcean output
Issue Type: Task Task
Assignee: Carlos Sanchez
Components: blueocean-plugin, docker, pipeline
Created: 2020-02-24 09:23
Priority: Minor Minor
Reporter: Gabor Mandity

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
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Feb 24, 2020, 4:53:03 AM2/24/20
to jenkinsc...@googlegroups.com

gabor.mandity@t-systems.com (JIRA)

unread,
Mar 30, 2020, 4:09:02 AM3/30/20
to jenkinsc...@googlegroups.com
Gabor Mandity commented on Task JENKINS-61195
 
Re: How to avoid "Checks if running on a Unix-like node" in BlueOcean output

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
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

gabor.mandity@t-systems.com (JIRA)

unread,
Mar 30, 2020, 4:09:02 AM3/30/20
to jenkinsc...@googlegroups.com

florian@ramillien.fr (JIRA)

unread,
May 4, 2020, 5:49:02 AM5/4/20
to jenkinsc...@googlegroups.com
Florian Ramillien commented on Bug JENKINS-61195
 
Re: How to avoid "Checks if running on a Unix-like node" in BlueOcean output

Same problem for us, we have implemented a small wrapper around sh/bat commands, devs see a lot of '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.

florian@ramillien.fr (JIRA)

unread,
May 4, 2020, 5:52:02 AM5/4/20
to jenkinsc...@googlegroups.com
Florian Ramillien edited a comment on Bug JENKINS-61195
Same problem for us, we have implemented a small wrapper around sh/bat commands, and devs see a lot of uneeded 'isUnix' steps.
{noformat}

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
  }
}{noformat}

If some steps can me marked as "invisible" (steps without side effects maybe ?) this could be great.
Reply all
Reply to author
Forward
0 new messages