Bamboo SCPTask fails build jobs are not failing

XMLWordPrintable

    • 1
    • Severity 2 - Major

      Issue Summary

      When a SCPTask (type 'com.atlassian.bamboo.plugins.bamboo-scp-plugin:scptask') fails to connect to the Host or any other IOException happens Bamboo build job is NOT failing. It is showing a Success state.

      Steps to Reproduce

      1. Create a Build plan in Bamboo version 10.1 +
      2. Configure a SCP Task with a dummy host name

      Expected Results

      Build job should fail showing the error message

      Actual Results

      The below exception is thrown in the build log:

      27-Aug-2025 16:51:48	Created executor with 1 threads. Upload to 1 hosts will be performed in parallel.
      27-Aug-2025 16:51:48	[host: linux-109032.gh] Connecting to linux-109032.gh on port: 22
      27-Aug-2025 16:51:48	[host: linux-109032.gh] Failed to connect to host
      27-Aug-2025 16:51:48	java.net.UnknownHostException: linux-109032.gh
      27-Aug-2025 16:51:48	        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:567)
      27-Aug-2025 16:51:48	        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
      27-Aug-2025 16:51:48	        at java.base/java.net.Socket.connect(Socket.java:751)
      27-Aug-2025 16:51:48	        at net.schmizz.sshj.SocketClient.connect(SocketClient.java:69)
      27-Aug-2025 16:51:48	        at com.atlassian.bamboo.plugins.scp.ScpTask.lambda$execute$7(ScpTask.java:202)
      27-Aug-2025 16:51:48	        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
      27-Aug-2025 16:51:48	        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
      27-Aug-2025 16:51:48	        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
      27-Aug-2025 16:51:48	        at java.base/java.lang.Thread.run(Thread.java:1583)
      
      
      27-Aug-2025 16:51:48	Finished task 'test Scp' with result: Success
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Mateusz Szmal
            Reporter:
            Vani
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: