{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/comments/183705045","pull_request_review_id":114752145,"id":183705045,"diff_hunk":"@@ -0,0 +1,103 @@\n+. \"$PSScriptRoot/SessionHelper.ps1\"\n+. \"$PSScriptRoot/RunPowerShellScriptJob.ps1\"\n+. \"$PSScriptRoot/JobHelper.ps1\"\n+Import-VstsLocStrings \"$PSScriptRoot\\module.json\"\n+\n+##############################\n+#.SYNOPSIS\n+#Invoke a script remotely on a set of machines. 2 types of script execution are supported: \n+# 1. Script File (should be already present on Target Machine)\n+# 2. Inline Script\n+#\n+#.DESCRIPTION\n+#Long description\n+#\n+#.PARAMETER targetMachineNames\n+# array of target machine names. target machine names can be of the form <fqdn>:<port>, <fqdn>, <ip>:<port>, <ip>\n+#\n+#.PARAMETER credential\n+# credential to be used to connect to remote machines. The username specified should be a part of\n+# the administrators or Windows Remote Management Users group. If no credential is specified, then the \n+# the account with which the agent is running is picked\n+#\n+#.PARAMETER protocol\n+# can be http or https\n+#\n+#.PARAMETER authentication\n+# can be 'Default' or 'Credssp'. If Credssp is specified, credential is mandatory.\n+# credssp setup on client and server needs to be done beforehand.\n+#\n+#.PARAMETER sessionName\n+# name of the pssession that connects to target machines\n+#\n+#.PARAMETER remoteScriptJobArgumentsByName\n+# a hashtable with the following fields:\n+# 1. scriptPath\n+# 2. scriptArguments\n+# 3. inlineScript\n+# 4. [bool] inline\n+# 5. workingDirectory\n+# 6. errorActionPreference\n+# 7. [bool] ignoreLASTEXITCODE\n+# 8. [bool] failOnStdErr\n+# 9. initializationScriptPath\n+# 10. sessionVariables\n+#\n+#.PARAMETER sessionOption\n+# the session option object to be used for creating sessions.\n+# eg. for skipping ca check, create a new session option object ( New-PSSession -SkipCACheck ) and pass as an argument.\n+#\n+#.EXAMPLE\n+#An example\n+#\n+#.NOTES\n+#General notes\n+##############################\n+\n+function Invoke-RemoteScript {","path":"Tasks/Common/RemoteDeployer/RemoteDeployer.psm1","position":57,"original_position":57,"commit_id":"293ca8f05ed6732d8f3f0170d2c1ba728d9c7e7f","original_commit_id":"293ca8f05ed6732d8f3f0170d2c1ba728d9c7e7f","user":{"login":"arjgupta","id":20121532,"avatar_url":"https://avatars0.githubusercontent.com/u/20121532?v=4","gravatar_id":"","url":"https://api.github.com/users/arjgupta","html_url":"https://github.com/arjgupta","followers_url":"https://api.github.com/users/arjgupta/followers","following_url":"https://api.github.com/users/arjgupta/following{/other_user}","gists_url":"https://api.github.com/users/arjgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/arjgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjgupta/subscriptions","organizations_url":"https://api.github.com/users/arjgupta/orgs","repos_url":"https://api.github.com/users/arjgupta/repos","events_url":"https://api.github.com/users/arjgupta/events{/privacy}","received_events_url":"https://api.github.com/users/arjgupta/received_events","type":"User","site_admin":false},"body":"this should return the jobResults received","created_at":"2018-04-24T12:11:46Z","updated_at":"2018-04-24T12:11:46Z","html_url":"https://github.com/Microsoft/vsts-tasks/pull/7011#discussion_r183705045","pull_request_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/7011","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/comments/183705045"},"html":{"href":"https://github.com/Microsoft/vsts-tasks/pull/7011#discussion_r183705045"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/7011"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/7011","id":182075218,"html_url":"https://github.com/Microsoft/vsts-tasks/pull/7011","diff_url":"https://github.com/Microsoft/vsts-tasks/pull/7011.diff","patch_url":"https://github.com/Microsoft/vsts-tasks/pull/7011.patch","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7011","number":7011,"state":"open","locked":false,"title":"adding remote deployer","user":{"login":"arjgupta","id":20121532,"avatar_url":"https://avatars0.githubusercontent.com/u/20121532?v=4","gravatar_id":"","url":"https://api.github.com/users/arjgupta","html_url":"https://github.com/arjgupta","followers_url":"https://api.github.com/users/arjgupta/followers","following_url":"https://api.github.com/users/arjgupta/following{/other_user}","gists_url":"https://api.github.com/users/arjgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/arjgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjgupta/subscriptions","organizations_url":"https://api.github.com/users/arjgupta/orgs","repos_url":"https://api.github.com/users/arjgupta/repos","events_url":"https://api.github.com/users/arjgupta/events{/privacy}","received_events_url":"https://api.github.com/users/arjgupta/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-17T07:31:25Z","updated_at":"2018-04-24T12:11:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4d949db2a5338b904c13278206f2be77477989c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kmkumaran","id":11780076,"avatar_url":"https://avatars2.githubusercontent.com/u/11780076?v=4","gravatar_id":"","url":"https://api.github.com/users/kmkumaran","html_url":"https://github.com/kmkumaran","followers_url":"https://api.github.com/users/kmkumaran/followers","following_url":"https://api.github.com/users/kmkumaran/following{/other_user}","gists_url":"https://api.github.com/users/kmkumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkumaran/subscriptions","organizations_url":"https://api.github.com/users/kmkumaran/orgs","repos_url":"https://api.github.com/users/kmkumaran/repos","events_url":"https://api.github.com/users/kmkumaran/events{/privacy}","received_events_url":"https://api.github.com/users/kmkumaran/received_events","type":"User","site_admin":false},{"login":"chshrikh","id":11972852,"avatar_url":"https://avatars1.githubusercontent.com/u/11972852?v=4","gravatar_id":"","url":"https://api.github.com/users/chshrikh","html_url":"https://github.com/chshrikh","followers_url":"https://api.github.com/users/chshrikh/followers","following_url":"https://api.github.com/users/chshrikh/following{/other_user}","gists_url":"https://api.github.com/users/chshrikh/gists{/gist_id}","starred_url":"https://api.github.com/users/chshrikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chshrikh/subscriptions","organizations_url":"https://api.github.com/users/chshrikh/orgs","repos_url":"https://api.github.com/users/chshrikh/repos","events_url":"https://api.github.com/users/chshrikh/events{/privacy}","received_events_url":"https://api.github.com/users/chshrikh/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/7011/commits","review_comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/7011/comments","review_comment_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7011/comments","statuses_url":"https://api.github.com/repos/Microsoft/vsts-tasks/statuses/293ca8f05ed6732d8f3f0170d2c1ba728d9c7e7f","head":{"label":"Microsoft:users/arjgupta/psOnTargetMachine_RemoteDeployer","ref":"users/arjgupta/psOnTargetMachine_RemoteDeployer","sha":"293ca8f05ed6732d8f3f0170d2c1ba728d9c7e7f","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":27631673,"name":"vsts-tasks","full_name":"Microsoft/vsts-tasks","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vsts-tasks","description":"Build and Release Tasks for Visual Studio Team Services and Team Foundation Server","fork":false,"url":"https://api.github.com/repos/Microsoft/vsts-tasks","forks_url":"https://api.github.com/repos/Microsoft/vsts-tasks/forks","keys_url":"https://api.github.com/repos/Microsoft/vsts-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vsts-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vsts-tasks/teams","hooks_url":"https://api.github.com/repos/Microsoft/vsts-tasks/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/events","assignees_url":"https://api.github.com/repos/Microsoft/vsts-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vsts-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vsts-tasks/tags","blobs_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vsts-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vsts-tasks/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vsts-tasks/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vsts-tasks/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vsts-tasks/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vsts-tasks/subscription","commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vsts-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vsts-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vsts-tasks/merges","archive_url":"https://api.github.com/repos/Microsoft/vsts-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vsts-tasks/downloads","issues_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vsts-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vsts-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vsts-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/deployments","created_at":"2014-12-06T11:11:46Z","updated_at":"2018-04-24T09:54:53Z","pushed_at":"2018-04-24T12:08:37Z","git_url":"git://github.com/Microsoft/vsts-tasks.git","ssh_url":"git@github.com:Microsoft/vsts-tasks.git","clone_url":"https://github.com/Microsoft/vsts-tasks.git","svn_url":"https://github.com/Microsoft/vsts-tasks","homepage":"https://aka.ms/tfbuild","size":47852,"stargazers_count":847,"watchers_count":847,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":787,"mirror_url":null,"archived":false,"open_issues_count":307,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":787,"open_issues":307,"watchers":847,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"36a30378c2a5d02cd179a73714e3231dbbbfe4f3","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":27631673,"name":"vsts-tasks","full_name":"Microsoft/vsts-tasks","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vsts-tasks","description":"Build and Release Tasks for Visual Studio Team Services and Team Foundation Server","fork":false,"url":"https://api.github.com/repos/Microsoft/vsts-tasks","forks_url":"https://api.github.com/repos/Microsoft/vsts-tasks/forks","keys_url":"https://api.github.com/repos/Microsoft/vsts-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vsts-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vsts-tasks/teams","hooks_url":"https://api.github.com/repos/Microsoft/vsts-tasks/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/events","assignees_url":"https://api.github.com/repos/Microsoft/vsts-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vsts-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vsts-tasks/tags","blobs_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vsts-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vsts-tasks/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vsts-tasks/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vsts-tasks/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vsts-tasks/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vsts-tasks/subscription","commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vsts-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vsts-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vsts-tasks/merges","archive_url":"https://api.github.com/repos/Microsoft/vsts-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vsts-tasks/downloads","issues_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vsts-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vsts-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vsts-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/deployments","created_at":"2014-12-06T11:11:46Z","updated_at":"2018-04-24T09:54:53Z","pushed_at":"2018-04-24T12:08:37Z","git_url":"git://github.com/Microsoft/vsts-tasks.git","ssh_url":"git@github.com:Microsoft/vsts-tasks.git","clone_url":"https://github.com/Microsoft/vsts-tasks.git","svn_url":"https://github.com/Microsoft/vsts-tasks","homepage":"https://aka.ms/tfbuild","size":47852,"stargazers_count":847,"watchers_count":847,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":787,"mirror_url":null,"archived":false,"open_issues_count":307,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":787,"open_issues":307,"watchers":847,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/7011"},"html":{"href":"https://github.com/Microsoft/vsts-tasks/pull/7011"},"issue":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7011"},"comments":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/7011/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/7011/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/7011/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/statuses/293ca8f05ed6732d8f3f0170d2c1ba728d9c7e7f"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"arjgupta"}}