[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Alex Earl assigned an issue to Unassigned Jenkins / JENKINS-33455 Option to disable echo of executed commands Change By: Alex Earl Assignee: Alex Earl Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Alex Earl commented on JENKINS-33455 Re: Option to disable echo of executed commands What I decided to do was wrap the command output in a check for verbose output. I am not sure this is the best way to go, so I am soliciting feedback. https://github.com/jenkinsci/publish-over-ssh-plugin/commit/6df164a8aa191650497c4416d2364c72682e364d Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Alex Earl reopened an issue Jenkins / JENKINS-33455 Option to disable echo of executed commands Change By: Alex Earl Resolution: Done Status: Resolved Reopened Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Maciej Jaros edited a comment on JENKINS-33455 Re: Option to disable echo of executed commands I don't want the commands from {{Publish over SSH}} step to be shown in Jenkins job log.Commands which should not be shown because they can contains password contain passwords or because they are simply long and confusing. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Maciej Jaros commented on JENKINS-33455 Re: Option to disable echo of executed commands I don't want the commands from Publish over SSH step to be shown in Jenkins job log. Commands which should not be shown because they can contains password or because they are simply long and confusing. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Alex Earl commented on JENKINS-33455 Re: Option to disable echo of executed commands To be clear, do you just not want the commands echo'd, or the full stdout/stderr from the execution of the commands? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Maciej Jaros commented on JENKINS-33455 Re: Option to disable echo of executed commands Problem is that Jenkins displays the information. Not really echo from console. Actual workaround is not to use Publish over SSH step and use ssh command... But then you have to mess with MoTD and some tty warnings. https://serverfault.com/questions/36421/stop-ssh-login-from-printing-motd-from-the-client/764403#764403 That also kind of defeats the purpose of setting up ssh connections in Jenkins. So would be better to simply fix SSH in Jenkins. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Rachel M. commented on JENKINS-33455 Re: Option to disable echo of executed commands I was wondering if /bin/bash made sense on the machine you are sending the commands. It was a long time ago, but I remember that I finally managed not to need to disable echo of executed commands, when removing all the sensitive data in the commands. I've seen you reported this issue because of a log less clear to read and harder to inspect. In that case, please, check that /bin/bash makes sense on the machine you are sending the commands. I think that only: set +x works on the machine where Jenkins is running (Execute shell step), because the use of Unix Shell is implicit. When sending commands (Publish over SSH step), I had to make explicit the use of Unix Shell. In other words: #!/bin/bash +x is the same as: #!/bin/bash set +x I hope this information is useful for you in order to find out the solution. Otherwise, so sorry if my comment/workaround made this issue to be resolved. Just Reopen Issue in order to get a solution for you. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Maciej Jaros edited a comment on JENKINS-33455 Re: Option to disable echo of executed commands I'm using Debian 9, but I used much older linux before and it also didn't work...On which system and/or plugin version does it supposed suppose to work? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Maciej Jaros commented on JENKINS-33455 Re: Option to disable echo of executed commands I'm using Debian 9, but I used much older linux before and it also didn't work... On which system and/or plugin version does it supposed to work? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Rachel M. commented on JENKINS-33455 Re: Option to disable echo of executed commands Sorry Maciej Jaros, which Operating System are you sending the commands to? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Rachel M. commented on JENKINS-33455 Re: Option to disable echo of executed commands Hi Maciej Jaros, which Operating System is Jenkins running on? Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Maciej Jaros commented on JENKINS-33455 Re: Option to disable echo of executed commands Rachel M. are you sure you are using SSH plugin? That is are you using "Send files or execute commands over SSH"? I tried your workaround and it doesn't work for SSH. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Maciej Jaros edited a comment on JENKINS-33455 Re: Option to disable echo of executed commands [~rachel] are you sure you are using SSH plugin? That is are you using "Send files or execute commands over SSH"? I tried your workaround and it doesn't work for SSH step . It only works for "Execute shell" step which is not what the task is about. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title david ducker commented on JENKINS-33455 Re: Option to disable echo of executed commands I agree this makes logs so much harder to read with no added value. Unless I'm mistaken you would have to set +x for every single shell, some of my scripts have 100's. This is not an adequate workaround. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Alex Earl resolved as Done It looks like there is already a workaround for this, I would recommend using that workaround. Jenkins / JENKINS-33455 Option to disable echo of executed commands Change By: Alex Earl Status: Open Resolved Resolution: Done Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Alex Earl assigned an issue to Alex Earl Jenkins / JENKINS-33455 Option to disable echo of executed commands Change By: Alex Earl Assignee: bap Alex Earl Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-33455) Option to disable echo of executed commands
Title: Message Title Rachel Moreno commented on JENKINS-33455 Re: Option to disable echo of executed commands I got it with: #!/bin/bash +x Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.