Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure File Copy build task not available on hosted Ubuntu build agent #8920

Open
benne opened this Issue Nov 27, 2018 · 6 comments

Comments

Projects
None yet
5 participants
@benne
Copy link

benne commented Nov 27, 2018

Environment

  • Server - Azure Pipelines
    Account name: chaosbyte
    Team project name: D Test
    Build definition name: D Test-CI
    Build number: 9

  • Agent - Hosted:
    Queue name: Not sure
    It is hosted a Ubuntu 16.04 build agent

Issue Description

I got a project building some pulling from an external Git repository, and building it with gcc through a simple bash script - no problem.
However, when I attempt to use the Azure File Copy task to copy over the single output file to a Azure Blob Storage container, I am told that this task won't run on Linux.
Is there any plans to make Azure File Copy work on the hosted Ubuntu 16.04 build agent, or do you have any other suggestion on how to achieve the same result with existing tasks that will run on this hosted build server?

Error logs

2018-11-27T18:03:41.7033273Z ##[section]Starting: AzureBlob File Copy
2018-11-27T18:03:41.7038323Z ==============================================================================
2018-11-27T18:03:41.7038468Z Task         : Azure File Copy
2018-11-27T18:03:41.7038567Z Description  : Copy files to Azure blob or VM(s)
2018-11-27T18:03:41.7038647Z Version      : 2.0.15
2018-11-27T18:03:41.7038738Z Author       : Microsoft Corporation
2018-11-27T18:03:41.7038823Z Help         : [More Information](https://aka.ms/azurefilecopyreadme)
2018-11-27T18:03:41.7038939Z ==============================================================================
2018-11-27T18:03:41.7244544Z ##[error]The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell.
2018-11-27T18:03:41.7258675Z ##[section]Finishing: AzureBlob File Copy
@chrisrpatterson

This comment has been minimized.

Copy link
Member

chrisrpatterson commented Nov 27, 2018

@benne you could use the az cli to do the file copy and that task will work on Linux

@benne

This comment has been minimized.

Copy link
Author

benne commented Nov 27, 2018

@chrisrpatterson az cli might be my best option for now, using a non-interactive service principal. I am gonna experiment a bit with this.

Still interested in if this is gonna make it to the road-map at some point. It would be nice to use the build-in build task for future projects :)

@chrisrpatterson

This comment has been minimized.

Copy link
Member

chrisrpatterson commented Nov 27, 2018

@benne I will leave the roadmap for that task up to the team that owns the task. The az cli task should work with the same service principal you would have setup for the Azure File Copy task.

@benne

This comment has been minimized.

Copy link
Author

benne commented Nov 27, 2018

@chrisrpatterson I went with a service principal with specific permissions to contribute to a specific storage account. Combined with an Azure CLI build task I was able to upload the assets to the blob storage.
Success!

@kmkumaran

This comment has been minimized.

Copy link
Member

kmkumaran commented Nov 29, 2018

@benne - Making Azure File copy xPlat is in our backlog. Adding @RoopeshNair . Until then using Azure CLI will be the right way to solve.

@RoopeshNair

This comment has been minimized.

Copy link
Member

RoopeshNair commented Jan 16, 2019

Bouncing an idea here, we are evaluating whether we can expose Azure storage as a file drive. When available you can copy the files over using SSH or Remote PS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.