unity-azure-pipelines-tasks icon indicating copy to clipboard operation
unity-azure-pipelines-tasks copied to clipboard

UnityCMD results in an error when run as a Task - "path" argument must be of type string

Open SimonDarksideJ opened this issue 1 year ago • 0 comments

When running the following UnityCMD task in an attempt to try and activate a personal license, the Log simply spit out the following error:

==============================================================================
The "path" argument must be of type string. Received type undefined
##[error]The "path" argument must be of type string. Received type undefined

YAML

- task: UnityCMDTask@1
  name: UnityLogin
  inputs:
    unityProjectPath: 'TheMostAwesomeGameEverMade/'
    cmdArgs: '-quit -nographics -username $(unity.username) -password $(unity.password)'

The help for the Task indicates that:

Specify command line arguments. The task will set -batchmode, -projectPath, -buildTarget and -logfile for you. See the [documentation](https://docs.unity3d.com/Manual/CommandLineArguments.html) for more info.

So no path was expected to be added?

SimonDarksideJ avatar Mar 18 '23 15:03 SimonDarksideJ