{"action":"created","issue":{"url":"https://api.github.com/repos/microsoft/azure-pipelines-tasks/issues/9158","repository_url":"https://api.github.com/repos/microsoft/azure-pipelines-tasks","labels_url":"https://api.github.com/repos/microsoft/azure-pipelines-tasks/issues/9158/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/azure-pipelines-tasks/issues/9158/comments","events_url":"https://api.github.com/repos/microsoft/azure-pipelines-tasks/issues/9158/events","html_url":"https://github.com/microsoft/azure-pipelines-tasks/issues/9158","id":393756327,"node_id":"MDU6SXNzdWUzOTM3NTYzMjc=","number":9158,"title":"Copy via bash on windows hosted agent not copying as expected","user":{"login":"psibi","id":737477,"node_id":"MDQ6VXNlcjczNzQ3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/737477?v=4","gravatar_id":"","url":"https://api.github.com/users/psibi","html_url":"https://github.com/psibi","followers_url":"https://api.github.com/users/psibi/followers","following_url":"https://api.github.com/users/psibi/following{/other_user}","gists_url":"https://api.github.com/users/psibi/gists{/gist_id}","starred_url":"https://api.github.com/users/psibi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psibi/subscriptions","organizations_url":"https://api.github.com/users/psibi/orgs","repos_url":"https://api.github.com/users/psibi/repos","events_url":"https://api.github.com/users/psibi/events{/privacy}","received_events_url":"https://api.github.com/users/psibi/received_events","type":"User","site_admin":false},"labels":[{"id":391089120,"node_id":"MDU6TGFiZWwzOTEwODkxMjA=","url":"https://api.github.com/repos/microsoft/azure-pipelines-tasks/labels/Area:%20Core","name":"Area: Core","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"bryanmacfarlane","id":919564,"node_id":"MDQ6VXNlcjkxOTU2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/919564?v=4","gravatar_id":"","url":"https://api.github.com/users/bryanmacfarlane","html_url":"https://github.com/bryanmacfarlane","followers_url":"https://api.github.com/users/bryanmacfarlane/followers","following_url":"https://api.github.com/users/bryanmacfarlane/following{/other_user}","gists_url":"https://api.github.com/users/bryanmacfarlane/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanmacfarlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanmacfarlane/subscriptions","organizations_url":"https://api.github.com/users/bryanmacfarlane/orgs","repos_url":"https://api.github.com/users/bryanmacfarlane/repos","events_url":"https://api.github.com/users/bryanmacfarlane/events{/privacy}","received_events_url":"https://api.github.com/users/bryanmacfarlane/received_events","type":"User","site_admin":true},"assignees":[{"login":"bryanmacfarlane","id":919564,"node_id":"MDQ6VXNlcjkxOTU2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/919564?v=4","gravatar_id":"","url":"https://api.github.com/users/bryanmacfarlane","html_url":"https://github.com/bryanmacfarlane","followers_url":"https://api.github.com/users/bryanmacfarlane/followers","following_url":"https://api.github.com/users/bryanmacfarlane/following{/other_user}","gists_url":"https://api.github.com/users/bryanmacfarlane/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanmacfarlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanmacfarlane/subscriptions","organizations_url":"https://api.github.com/users/bryanmacfarlane/orgs","repos_url":"https://api.github.com/users/bryanmacfarlane/repos","events_url":"https://api.github.com/users/bryanmacfarlane/events{/privacy}","received_events_url":"https://api.github.com/users/bryanmacfarlane/received_events","type":"User","site_admin":true},{"login":"jtpetty","id":6889008,"node_id":"MDQ6VXNlcjY4ODkwMDg=","avatar_url":"https://avatars2.githubusercontent.com/u/6889008?v=4","gravatar_id":"","url":"https://api.github.com/users/jtpetty","html_url":"https://github.com/jtpetty","followers_url":"https://api.github.com/users/jtpetty/followers","following_url":"https://api.github.com/users/jtpetty/following{/other_user}","gists_url":"https://api.github.com/users/jtpetty/gists{/gist_id}","starred_url":"https://api.github.com/users/jtpetty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtpetty/subscriptions","organizations_url":"https://api.github.com/users/jtpetty/orgs","repos_url":"https://api.github.com/users/jtpetty/repos","events_url":"https://api.github.com/users/jtpetty/events{/privacy}","received_events_url":"https://api.github.com/users/jtpetty/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2018-12-23T14:58:51Z","updated_at":"2019-08-22T16:16:36Z","closed_at":null,"author_association":"NONE","body":"## Troubleshooting\r\nCheckout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting\r\n\r\n## Environment\r\n- Server - Azure Pipelines or TFS on-premises?\r\n    \r\nUsing Azure Pipelines. You can find the environment here: https://dev.azure.com/commercialhaskell/stack/_build/results?buildId=143\r\n\r\n- Agent - Hosted or Private: \r\n    \r\nAgent name: vs2017-win2016\r\n\r\n## Issue Description\r\n\r\nSomething like this doesn't seem to work for Windows agent (although works fine for Linux and MacOS):\r\n\r\n```\r\n  - bash: |\r\n      cp somefile $(Build.ArtifactStagingDirectory)\r\n    displayName: Copy\r\n  - task: PublishBuildArtifacts@1\r\n    inputs:\r\n      pathtoPublish: '$(Build.ArtifactStagingDirectory)'\r\n      artifactName: some-artifact-name\r\n```\r\n\r\nThe actual build pipeline replicating the issue: https://dev.azure.com/commercialhaskell/stack/_build/results?buildId=143\r\n\r\nNo build artifacts are published for the Windows environment.\r\n\r\nYou can see in the above build that the same thing works for both Linux and OSX.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/microsoft/azure-pipelines-tasks/issues/comments/523974574","html_url":"https://github.com/microsoft/azure-pipelines-tasks/issues/9158#issuecomment-523974574","issue_url":"https://api.github.com/repos/microsoft/azure-pipelines-tasks/issues/9158","id":523974574,"node_id":"MDEyOklzc3VlQ29tbWVudDUyMzk3NDU3NA==","user":{"login":"jtpetty","id":6889008,"node_id":"MDQ6VXNlcjY4ODkwMDg=","avatar_url":"https://avatars2.githubusercontent.com/u/6889008?v=4","gravatar_id":"","url":"https://api.github.com/users/jtpetty","html_url":"https://github.com/jtpetty","followers_url":"https://api.github.com/users/jtpetty/followers","following_url":"https://api.github.com/users/jtpetty/following{/other_user}","gists_url":"https://api.github.com/users/jtpetty/gists{/gist_id}","starred_url":"https://api.github.com/users/jtpetty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtpetty/subscriptions","organizations_url":"https://api.github.com/users/jtpetty/orgs","repos_url":"https://api.github.com/users/jtpetty/repos","events_url":"https://api.github.com/users/jtpetty/events{/privacy}","received_events_url":"https://api.github.com/users/jtpetty/received_events","type":"User","site_admin":false},"created_at":"2019-08-22T16:16:36Z","updated_at":"2019-08-22T16:16:36Z","author_association":"MEMBER","body":"No problem. I didn't know about `wslpath` either until I was trying to figure out a proper way to convert the Windows-style path to a bash-friendly path. Let me look into updating the docs or figure out way to automatically fix it."}}
{"actor":{"display_login":"jtpetty"}}