Ignore result of a Command

XMLWordPrintable

    • 0

      It should be possible to run a Command task and have bamboo ignore the result in the same way we can with a mvn task.

      I run various docker commands, to perform cleanup activities in the finally block of the build.

      docker rm $(docker ps -a -q)
      

      When there is nothing for the script to do, i.e. result of ps -a is null, the docker] commands returns an error which is expected. In the context of my build, this error is non-fatal. To bamboo, it captures the command result and fails the build.

      I'd rather not have to figure out shell syntax to resolve this kind of issue and simply have bamboo ignore the error condition.

            Assignee:
            Unassigned
            Reporter:
            Mike Holdsworth
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: