{"action":"created","issue":{"url":"https://api.github.com/repos/cake-build/resources/issues/14","repository_url":"https://api.github.com/repos/cake-build/resources","labels_url":"https://api.github.com/repos/cake-build/resources/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/cake-build/resources/issues/14/comments","events_url":"https://api.github.com/repos/cake-build/resources/issues/14/events","html_url":"https://github.com/cake-build/resources/issues/14","id":180695240,"number":14,"title":"How do you pass environment vars via build.ps1 to build.cake?","user":{"login":"xclayl","id":232027,"avatar_url":"https://avatars.githubusercontent.com/u/232027?v=3","gravatar_id":"","url":"https://api.github.com/users/xclayl","html_url":"https://github.com/xclayl","followers_url":"https://api.github.com/users/xclayl/followers","following_url":"https://api.github.com/users/xclayl/following{/other_user}","gists_url":"https://api.github.com/users/xclayl/gists{/gist_id}","starred_url":"https://api.github.com/users/xclayl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xclayl/subscriptions","organizations_url":"https://api.github.com/users/xclayl/orgs","repos_url":"https://api.github.com/users/xclayl/repos","events_url":"https://api.github.com/users/xclayl/events{/privacy}","received_events_url":"https://api.github.com/users/xclayl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-03T17:15:12Z","updated_at":"2016-10-06T10:26:31Z","closed_at":null,"body":"This evironment var seems to be ignored:\r\n```\r\nSET BUILD_VERSION=0.9.1-beta\r\npowershell .\\build.ps1 \r\n```\r\n\r\nMy build.cake file has the following:\r\n```\r\nvar version = Argument(\"build_version\", \"0.9.0-beta\");\r\n\r\nTask(\"Default\")\r\n.Does(() => {\r\n\tInformation(\"version=\" + version);\r\n});\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cake-build/resources/issues/comments/251923885","html_url":"https://github.com/cake-build/resources/issues/14#issuecomment-251923885","issue_url":"https://api.github.com/repos/cake-build/resources/issues/14","id":251923885,"user":{"login":"xclayl","id":232027,"avatar_url":"https://avatars.githubusercontent.com/u/232027?v=3","gravatar_id":"","url":"https://api.github.com/users/xclayl","html_url":"https://github.com/xclayl","followers_url":"https://api.github.com/users/xclayl/followers","following_url":"https://api.github.com/users/xclayl/following{/other_user}","gists_url":"https://api.github.com/users/xclayl/gists{/gist_id}","starred_url":"https://api.github.com/users/xclayl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xclayl/subscriptions","organizations_url":"https://api.github.com/users/xclayl/orgs","repos_url":"https://api.github.com/users/xclayl/repos","events_url":"https://api.github.com/users/xclayl/events{/privacy}","received_events_url":"https://api.github.com/users/xclayl/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T10:26:31Z","updated_at":"2016-10-06T10:26:31Z","body":"The version number is a combination of things, including the Hg change set number. It could be rebuilt in cake but I'd rather pass it in. \r\n\r\nIt seems that build.ps1 should do just what it's good at: downloading and updating cake, then let us call cake.exe directly. Build.ps1 parameters then would be something like, -CakeVersion 0.10.x, to indicate I want to stick with bug fixes of a particular version. "}}
{"actor":{"display_login":"xclayl"}}