fastlane: SSH will not show console logs in runtime

Issue Description

Using ssh will work fine, but instead of showing the console logs in runtime it will show them only when job is done. You cannot see the progress of the ssh through logs. Using regular ssh to that machine using terminal do show the console logs with the progress.

Complete output when running fastlane, including the stack trace and command used

Command used: ssh

ssh(
        host: "10.8.1.29",
        username: "local",
        password: "password",
        commands:
            [
                "cd /Users/local/Desktop/Shared/automation_mobile ; python flow.py \"" + build_info['build_url'] + "\" ios"
            ],
    )

As you can see in the next output, only after the process finished (15 min later) and successfully executed, only then it will show the terminal logs:

[11:41:46]: [SSH COMMAND]: cd /Users/local/Desktop/Shared/automation_mobile ; python flow.py "https://rink.hockeyapp.net/api/2/apps/92d18ec4382b424eb2a2/app_versions/73?format=ipa&pltoken=b34hy535bhe5hy&avtoken=erth356h236h356hy6" ios
[11:55:50]: Succesfully executed 1 commands on host: 10.8.1.29
[11:55:50]: 
########### 
 File class object
File class object
File class object
File class object
File class object
start test
device connected
...

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Fastfile:

ssh(
        host: "10.8.1.29",
        username: "local",
        password: "password",
        commands:
            [
                "cd /Users/local/Desktop/Shared/automation_mobile ; python flow.py \"" + build_info['build_url'] + "\" ios"
            ],
    )

Environment

fastlane version (run fastlane -v): fastlane 1.81.0 (also tried on 1.84.0

Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? n

Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? n

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (2 by maintainers)

Commits related to this issue

Most upvoted comments

@nmayafit you can check out the PR locally by doing something like this. Then run the fastlane binary in that new, checked out copy. See the contributing instructions for details. If you do that, you can confirm for us that this PR does what you need.