Improve the SSH task output on Build logs

XMLWordPrintable

    • 3

      Problem

      The output of an SSH task will print the task commands two times in the build logs adding unnecessary noise to the logs.

      Output Sample

      simple  22-Mar-2019 11:35:57  Starting task 'My SSH script' of type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask'
      simple  22-Mar-2019 11:35:57  Connecting to ubuntu on port: 22
      simple  22-Mar-2019 11:35:58  Executing [
      simple  22-Mar-2019 11:35:58  echo **************
      simple  22-Mar-2019 11:35:58  echo these
      simple  22-Mar-2019 11:35:58  echo are
      simple  22-Mar-2019 11:35:58  echo my
      simple  22-Mar-2019 11:35:58  echo ssh
      simple  22-Mar-2019 11:35:58  echo commands
      simple  22-Mar-2019 11:35:58  echo **************
      simple  22-Mar-2019 11:35:58  ]
      
      build 22-Mar-2019 11:35:58  2018-06-27_124005_catalina.out bash.sh output sent
      build 22-Mar-2019 11:35:58  these
      build 22-Mar-2019 11:35:58  are
      build 22-Mar-2019 11:35:58  my
      build 22-Mar-2019 11:35:58  ssh
      build 22-Mar-2019 11:35:58  commands
      build 22-Mar-2019 11:35:58  2018-06-27_124005_catalina.out bash.sh output sent
      
      simple  22-Mar-2019 11:35:58  [
      simple  22-Mar-2019 11:35:58  echo **************
      simple  22-Mar-2019 11:35:58  echo these
      simple  22-Mar-2019 11:35:58  echo are
      simple  22-Mar-2019 11:35:58  echo my
      simple  22-Mar-2019 11:35:58  echo ssh
      simple  22-Mar-2019 11:35:58  echo commands
      simple  22-Mar-2019 11:35:58  echo **************
      simple  22-Mar-2019 11:35:58  ] has finished.

      Suggested solution

      Substitute the second print of commands by the SSH task name.

              Assignee:
              Unassigned
              Reporter:
              Daniel Santos (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: