Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Tasks only work in a Windows agent, even though the powershell modules are cross-platform #52

Open
badjouras opened this issue Feb 28, 2022 · 2 comments

Comments

@badjouras
Copy link

The JSON for each task restricts it to Windows agents:
image
https://github.com/DataThirstLtd/databricks.vsts.tools/blob/master/deployScriptsTask/task.prod.json

Running them on a Ubuntu agent yields an error message:

##[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.

However, the powershell modules from azure.databricks.cicd.tools support Powershell Core and, hence, work on Linux agents.

The JSON files should be updated to remove the restriction to Windows agents.

@jessehouwing
Copy link

That won't help. Azure Pipelines can't execute a PowerShell task on PowerShell Core and will always use Windows PowerShell available on the host. For these tasks to work on a non-windows agent, thy need to be rewritten in Node using the Azure Pipelines Task Lib.

@badjouras
Copy link
Author

Are you referring to a pipeline task defined in a piepline YAML, or to a marketplace task?

I am using pipeline PowerShell tasks on a ubuntu agent with no problem:

image
image

The databricksDeployDBFSFiles.ps1 is simply a modified, simpler version of https://github.com/DataThirstLtd/databricks.vsts.tools/blob/master/deployDBFSFilesTask/vstsDeployDBFSFile.ps1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants