{"action":"closed","number":237,"pull_request":{"url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls/237","id":215339689,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MzM5Njg5","html_url":"https://github.com/Microsoft/azure-pipelines-image-generation/pull/237","diff_url":"https://github.com/Microsoft/azure-pipelines-image-generation/pull/237.diff","patch_url":"https://github.com/Microsoft/azure-pipelines-image-generation/pull/237.patch","issue_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/issues/237","number":237,"state":"closed","locked":false,"title":"[Linux image] fix powershell test installation ","user":{"login":"mikaelkrief","id":2725302,"node_id":"MDQ6VXNlcjI3MjUzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2725302?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaelkrief","html_url":"https://github.com/mikaelkrief","followers_url":"https://api.github.com/users/mikaelkrief/followers","following_url":"https://api.github.com/users/mikaelkrief/following{/other_user}","gists_url":"https://api.github.com/users/mikaelkrief/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelkrief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelkrief/subscriptions","organizations_url":"https://api.github.com/users/mikaelkrief/orgs","repos_url":"https://api.github.com/users/mikaelkrief/repos","events_url":"https://api.github.com/users/mikaelkrief/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelkrief/received_events","type":"User","site_admin":false},"body":"Before the fix the powershell test failed with:\r\n\r\n```\r\nazure-arm: Preparing to unpack .../powershell_6.1.0-1.ubuntu.16.04_amd64.deb ...\r\n    azure-arm: Unpacking powershell (6.1.0-1.ubuntu.16.04) ...\r\n    azure-arm: Processing triggers for man-db (2.7.5-1) ...\r\n    azure-arm: Setting up powershell (6.1.0-1.ubuntu.16.04) ...\r\n    azure-arm: Testing to make sure that script performed as expected, and basic scenarios work\r\n    azure-arm: /usr/bin/pwsh\r\n    azure-arm:\r\n    azure-arm: Unhandled Exception: System.ArgumentNullException: Value cannot be null.\r\n    azure-arm: Parameter name: value\r\n    azure-arm:    at System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType)\r\n    azure-arm:    at Microsoft.PowerShell.CommandLineParameterParser.MatchSwitch(String switchKey, String match, String smallestUnambiguousMatch)\r\n    azure-arm:    at Microsoft.PowerShell.CommandLineParameterParser.EarlyParseHelper(String[] args)\r\n    azure-arm:    at Microsoft.PowerShell.CommandLineParameterParser.EarlyParse(String[] args)\r\n    azure-arm:    at Microsoft.PowerShell.UnmanagedPSEntry.Start(String consoleFilePath, String[] args, Int32 argc)\r\n    azure-arm:    at Microsoft.PowerShell.ManagedPSEntry.Main(String[] args) in /PowerShell/src/powershell/Program.cs:line 22\r\n    azure-arm: /tmp/script_3884.sh: line 25:  5301 Aborted                 (core dumped) pwsh -c ''\r\n    azure-arm: pwsh failed to run\r\n```\r\nSo I add simple powershell command to test:\r\n\r\npwsh -c '$PSVersionTable.PSVersion'\r\n\r\n\r\n","created_at":"2018-09-13T16:22:08Z","updated_at":"2018-09-26T08:54:16Z","closed_at":"2018-09-26T08:54:16Z","merged_at":null,"merge_commit_sha":"ce5c9424a1ce5ed9c5e456975bdb73b1ca9bbe98","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls/237/commits","review_comments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls/237/comments","review_comment_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/issues/237/comments","statuses_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/statuses/54662006fbe6f4f64ca555f099ce2fde37c22fff","head":{"label":"mikaelkrief:master","ref":"master","sha":"54662006fbe6f4f64ca555f099ce2fde37c22fff","user":{"login":"mikaelkrief","id":2725302,"node_id":"MDQ6VXNlcjI3MjUzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2725302?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaelkrief","html_url":"https://github.com/mikaelkrief","followers_url":"https://api.github.com/users/mikaelkrief/followers","following_url":"https://api.github.com/users/mikaelkrief/following{/other_user}","gists_url":"https://api.github.com/users/mikaelkrief/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelkrief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelkrief/subscriptions","organizations_url":"https://api.github.com/users/mikaelkrief/orgs","repos_url":"https://api.github.com/users/mikaelkrief/repos","events_url":"https://api.github.com/users/mikaelkrief/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelkrief/received_events","type":"User","site_admin":false},"repo":{"id":148019125,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgwMTkxMjU=","name":"vsts-image-generation","full_name":"mikaelkrief/vsts-image-generation","private":false,"owner":{"login":"mikaelkrief","id":2725302,"node_id":"MDQ6VXNlcjI3MjUzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2725302?v=4","gravatar_id":"","url":"https://api.github.com/users/mikaelkrief","html_url":"https://github.com/mikaelkrief","followers_url":"https://api.github.com/users/mikaelkrief/followers","following_url":"https://api.github.com/users/mikaelkrief/following{/other_user}","gists_url":"https://api.github.com/users/mikaelkrief/gists{/gist_id}","starred_url":"https://api.github.com/users/mikaelkrief/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikaelkrief/subscriptions","organizations_url":"https://api.github.com/users/mikaelkrief/orgs","repos_url":"https://api.github.com/users/mikaelkrief/repos","events_url":"https://api.github.com/users/mikaelkrief/events{/privacy}","received_events_url":"https://api.github.com/users/mikaelkrief/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mikaelkrief/vsts-image-generation","description":"Collection of scripts used in generating the various VSTS Hosted CI/CD Images","fork":true,"url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation","forks_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/forks","keys_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/teams","hooks_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/hooks","issue_events_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/issues/events{/number}","events_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/events","assignees_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/assignees{/user}","branches_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/branches{/branch}","tags_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/tags","blobs_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/statuses/{sha}","languages_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/languages","stargazers_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/stargazers","contributors_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/contributors","subscribers_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/subscribers","subscription_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/subscription","commits_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/contents/{+path}","compare_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/merges","archive_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/downloads","issues_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/issues{/number}","pulls_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/pulls{/number}","milestones_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/milestones{/number}","notifications_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/labels{/name}","releases_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/releases{/id}","deployments_url":"https://api.github.com/repos/mikaelkrief/vsts-image-generation/deployments","created_at":"2018-09-09T11:31:44Z","updated_at":"2018-09-26T08:53:24Z","pushed_at":"2018-09-26T08:53:20Z","git_url":"git://github.com/mikaelkrief/vsts-image-generation.git","ssh_url":"git@github.com:mikaelkrief/vsts-image-generation.git","clone_url":"https://github.com/mikaelkrief/vsts-image-generation.git","svn_url":"https://github.com/mikaelkrief/vsts-image-generation","homepage":null,"size":1184,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"6235e92eab1533ad146a9908ae92a33b97642e70","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","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":106433813,"node_id":"MDEwOlJlcG9zaXRvcnkxMDY0MzM4MTM=","name":"azure-pipelines-image-generation","full_name":"Microsoft/azure-pipelines-image-generation","private":false,"owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","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},"html_url":"https://github.com/Microsoft/azure-pipelines-image-generation","description":"Image generation for Hosted Azure Pipelines Images","fork":false,"url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation","forks_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/forks","keys_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/teams","hooks_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/events","assignees_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/tags","blobs_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/languages","stargazers_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/subscription","commits_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/merges","archive_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/downloads","issues_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/deployments","created_at":"2017-10-10T15:12:49Z","updated_at":"2018-09-22T23:13:56Z","pushed_at":"2018-09-26T08:53:22Z","git_url":"git://github.com/Microsoft/azure-pipelines-image-generation.git","ssh_url":"git@github.com:Microsoft/azure-pipelines-image-generation.git","clone_url":"https://github.com/Microsoft/azure-pipelines-image-generation.git","svn_url":"https://github.com/Microsoft/azure-pipelines-image-generation","homepage":"","size":1223,"stargazers_count":163,"watchers_count":163,"language":"PowerShell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"archived":false,"open_issues_count":39,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":91,"open_issues":39,"watchers":163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls/237"},"html":{"href":"https://github.com/Microsoft/azure-pipelines-image-generation/pull/237"},"issue":{"href":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/issues/237"},"comments":{"href":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/issues/237/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls/237/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/pulls/237/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/azure-pipelines-image-generation/statuses/54662006fbe6f4f64ca555f099ce2fde37c22fff"}},"author_association":"NONE","merged":false,"mergeable":true,"rebaseable":false,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":0,"deletions":0,"changed_files":0}}
{"actor":{"display_login":"mikaelkrief"}}