Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20364

Improve the SSH task output on Build logs

    XMLWordPrintable

Details

    • 1
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsantos Daniel Santos
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: