{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/4879","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/4879/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/4879/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/4879/events","html_url":"https://github.com/fastlane/fastlane/issues/4879","id":157225228,"number":4879,"title":"screengrab appending weird characters in the beginning and at end of commands executed","user":{"login":"kpuneet","id":4098503,"avatar_url":"https://avatars.githubusercontent.com/u/4098503?v=3","gravatar_id":"","url":"https://api.github.com/users/kpuneet","html_url":"https://github.com/kpuneet","followers_url":"https://api.github.com/users/kpuneet/followers","following_url":"https://api.github.com/users/kpuneet/following{/other_user}","gists_url":"https://api.github.com/users/kpuneet/gists{/gist_id}","starred_url":"https://api.github.com/users/kpuneet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpuneet/subscriptions","organizations_url":"https://api.github.com/users/kpuneet/orgs","repos_url":"https://api.github.com/users/kpuneet/repos","events_url":"https://api.github.com/users/kpuneet/events{/privacy}","received_events_url":"https://api.github.com/users/kpuneet/received_events","type":"User","site_admin":false},"labels":[{"id":337787114,"url":"https://api.github.com/repos/fastlane/fastlane/labels/screengrab","name":"screengrab","color":"bfe5bf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-05-27T14:57:01Z","updated_at":"2016-11-28T15:25:17Z","closed_at":"2016-07-05T20:19:34Z","body":"### New Issue Checklist\n- [ Y] Updated fastlane to the latest version\n- [Y ] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\n### Issue Description\n\nRunning ScreenGrab on Jenkins : While executing 'screengrab\" command some weird characters are getting appended at both beginning and at the end of the all command executed by screengrab which is not letting the tool run, when i execute the same command over shell it is working fine\n\n---\n\n---\n##### Complete output when running fastlane, including the stack trace and command used\n\n```\n/usr/bin/env bash /var/folders/g8/m6nw30110094mk5nh8pj991c0000gn/T/hudson1344588153603882317.sh\n+-----------------------------+--------------------------------------------------------------------+\n|                                   \u001B[32mSummary for screengrab 0.3.2\u001B[0m                                   |\n+-----------------------------+--------------------------------------------------------------------+\n| app_apk_path                | /Users/BuildBot/Desktop/Android-Screenshot/app-devGoogle-debug.apk |\n| tests_apk_path              | /Users/BuildBot/Desktop/Android-Screenshot/app-devGoogle-debug-... |\n| output_directory            | /Users/BuildBot/Desktop/Android-Screenshot                         |\n| app_package_name            | com.test.android                                         |\n| android_home                | /Users/BuildBot/Library/Android/sdk                                |\n| clear_previous_screenshots  | true                                                               |\n| device_type                 | phone                                                              |\n| tests_package_name          | com.test.android.test                                    |\n| locales                     | [\"en-US\"]                                                          |\n| skip_open_summary           | false                                                              |\n| test_instrumentation_runner | android.support.test.runner.AndroidJUnitRunner                     |\n| ending_locale               | en-US                                                              |\n+-----------------------------+--------------------------------------------------------------------+\n\n[10:44:27]: \u001B[33mLimiting the test classes run by `screengrab` to just those that generate screenshots can make runs faster.\u001B[0m\n[10:44:27]: \u001B[33mConsider using the :use_tests_in_classes or :use_tests_in_packages option, and organize your tests accordingly.\u001B[0m\n[10:44:27]: Clearing phoneScreenshots within /Users/BuildBot/Desktop/Android-Screenshot\n[10:44:27]: \u001B[4m\u001B[36m$ adb devices -l\u001B[0m\u001B[0m\nNo such file or directory - fork failed\n\u001B[33m-------------------------------------------------------------------------------------------\u001B[0m\n\u001B[33m😨  An error occured. Please enable crash reports using `fastlane enable_crash_reporting`.\u001B[0m\n\u001B[33m👍  This makes resolving issues much easier and helps improve fastlane.\u001B[0m\n\u001B[33m🔒  The reports will be stored securely on getsentry.com.\u001B[0m\n\u001B[33m🙊  More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3\u001B[0m\n\u001B[33m-------------------------------------------------------------------------------------------\u001B[0m\n/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.39.1/lib/fastlane_core/command_executor.rb:46:in `spawn': \u001B[31m[!] No such file or directory - fork failed\u001B[0m (Errno::ENOENT)\n    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.39.1/lib/fastlane_core/command_executor.rb:46:in `execute'\n    from /Library/Ruby/Gems/2.0.0/gems/screengrab-0.3.2/lib/screengrab/runner.rb:80:in `select_device'\n    from /Library/Ruby/Gems/2.0.0/gems/screengrab-0.3.2/lib/screengrab/runner.rb:52:in `run'\n    from /Library/Ruby/Gems/2.0.0/gems/screengrab-0.3.2/bin/screengrab:39:in `block (2 levels) in run'\n    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\n    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'\n    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'\n    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'\n    from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.39.1/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'\n    from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'\n    from /Library/Ruby/Gems/2.0.0/gems/screengrab-0.3.2/bin/screengrab:56:in `run'\n    from /Library/Ruby/Gems/2.0.0/gems/screengrab-0.3.2/bin/screengrab:62:in `<main>'\n/var/folders/g8/m6nw30110094mk5nh8pj991c0000gn/T/hudson1344588153603882317.sh: line 15: adb: command not found\nBuild step 'Execute shell' marked build as failure\nFinished: FAILURE\n```\n### Configuration Files\n\nscreengrab -k '/Users/BuildBot/Desktop/Android-Screenshot/app-devGoogle-debug.apk' -b '/Users/BuildBot/Desktop/Android-Screenshot/app-devGoogle-debug-androidTest-unaligned.apk' -o '/Users/BuildBot/Desktop/Android-Screenshot' -a 'com.test.android' -n '/Users/BuildBot/Library/Android/sdk' --clear_previous_screenshots true -d phone\n\nFastfile:\n\n``` ruby\n# INSERT CONTENT HERE : Not using fastfile , writing everyhing in screengrab script file pasted above\n```\n### Environment\n\nfastlane version (run `fastlane -v`): 0.3.2\n\nDo you use bundler to execute fastlane (i.e. `bundle exec fastlane`)? no\n\nDo you use a Ruby environment manager (e.g. `chruby`, `rbenv`, `rvm`)? rbenv\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/263299565","html_url":"https://github.com/fastlane/fastlane/issues/4879#issuecomment-263299565","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/4879","id":263299565,"user":{"login":"dumazy","id":2174500,"avatar_url":"https://avatars.githubusercontent.com/u/2174500?v=3","gravatar_id":"","url":"https://api.github.com/users/dumazy","html_url":"https://github.com/dumazy","followers_url":"https://api.github.com/users/dumazy/followers","following_url":"https://api.github.com/users/dumazy/following{/other_user}","gists_url":"https://api.github.com/users/dumazy/gists{/gist_id}","starred_url":"https://api.github.com/users/dumazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumazy/subscriptions","organizations_url":"https://api.github.com/users/dumazy/orgs","repos_url":"https://api.github.com/users/dumazy/repos","events_url":"https://api.github.com/users/dumazy/events{/privacy}","received_events_url":"https://api.github.com/users/dumazy/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T15:25:17Z","updated_at":"2016-11-28T15:25:17Z","body":"@kpuneet I'm having the exact same issue. Did you solve it?"}}
{"actor":{"display_login":"dumazy"}}