{"action":"opened","issue":{"url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/199","repository_url":"https://api.github.com/repos/SharePoint/sp-dev-docs","labels_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/199/comments","events_url":"https://api.github.com/repos/SharePoint/sp-dev-docs/issues/199/events","html_url":"https://github.com/SharePoint/sp-dev-docs/issues/199","id":177702959,"number":199,"title":"Unable to add an array of tasks using the addBuildTasks function","user":{"login":"waldekmastykarz","id":11164679,"avatar_url":"https://avatars.githubusercontent.com/u/11164679?v=3","gravatar_id":"","url":"https://api.github.com/users/waldekmastykarz","html_url":"https://github.com/waldekmastykarz","followers_url":"https://api.github.com/users/waldekmastykarz/followers","following_url":"https://api.github.com/users/waldekmastykarz/following{/other_user}","gists_url":"https://api.github.com/users/waldekmastykarz/gists{/gist_id}","starred_url":"https://api.github.com/users/waldekmastykarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waldekmastykarz/subscriptions","organizations_url":"https://api.github.com/users/waldekmastykarz/orgs","repos_url":"https://api.github.com/users/waldekmastykarz/repos","events_url":"https://api.github.com/users/waldekmastykarz/events{/privacy}","received_events_url":"https://api.github.com/users/waldekmastykarz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T04:39:40Z","updated_at":"2016-09-19T04:39:40Z","closed_at":null,"body":"#### Category\r\n- [ ] Question\r\n- [ ] Typo\r\n- [x] Bug\r\n- [ ] Enhancement / Suggestion\r\n- [ ] Additional article idea\r\n\r\n#### Expected or Desired Behavior\r\nIn sync with the specification, passing an array of tasks to the `addBuildTasks` function, should add all of them to the `additionalBuildTasks` array.\r\n\r\n#### Observed Behavior\r\nAfter passing an array of tasks as an argument of the `addBuildTasks` function, the `additionalBuildTasks` remains empty.\r\n\r\n#### Steps to Reproduce\r\n```js\r\nconst build = require('@microsoft/sp-build-web');\r\nvar task1 = { execute: (config) => { return Promise.resolve(); }, name: 'task1' };\r\nvar task2 = { execute: (config) => { return Promise.resolve(); }, name: 'task2' };\r\nbuild.addBuildTasks([setBaseUrl, copytemplates]);\r\n// none of the tasks is being executed when running gulp build\r\n```"}}
{"actor":{"display_login":"waldekmastykarz"}}