azure-devops-extension-tasks: ##[error]The "path" argument must be of type string. Received type undefined

The publish task returns a warning message saying the tfx-cli is being deprecated and to add a new task before, use node cli for tfx-cli.

The task was added just before the publish task but, returns the following message:

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

Any idea what the issue is? Here is the debug log from AzDo.

2020-02-12T21:21:45.7551255Z ##[section]Starting: Use Node CLI for Azure DevOps (tfx-cli): v0.7.x

2020-02-12T21:21:45.7554362Z ==============================================================================
2020-02-12T21:21:45.7554440Z Task         : Use Node CLI for Azure DevOps (tfx-cli)
2020-02-12T21:21:45.7554484Z Description  : Installs the Node CLI for Azure DevOps (tfx-cli) on your agent.
2020-02-12T21:21:45.7554526Z Version      : 2.0.18
2020-02-12T21:21:45.7554580Z Author       : Microsoft Corporation
2020-02-12T21:21:45.7554620Z Help         : 
2020-02-12T21:21:45.7554659Z ==============================================================================
2020-02-12T21:21:46.2507065Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2020-02-12T21:21:46.2519434Z ##[debug]loading inputs and endpoints
2020-02-12T21:21:46.2528906Z ##[debug]loading INPUT_VERSION
2020-02-12T21:21:46.2544336Z ##[debug]loading INPUT_CHECKLATEST
2020-02-12T21:21:46.2547805Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2020-02-12T21:21:46.2549890Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2020-02-12T21:21:46.2552457Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2020-02-12T21:21:46.2557846Z ##[debug]loaded 5
2020-02-12T21:21:46.2564058Z ##[debug]Agent.ProxyUrl=undefined
2020-02-12T21:21:46.2565717Z ##[debug]Agent.CAInfo=undefined
2020-02-12T21:21:46.2566199Z ##[debug]Agent.ClientCert=undefined
2020-02-12T21:21:46.2568146Z ##[debug]Agent.SkipCertValidation=undefined
2020-02-12T21:21:46.2576572Z ##[debug]Agent.ProxyUrl=undefined
2020-02-12T21:21:46.2578380Z ##[debug]Agent.CAInfo=undefined
2020-02-12T21:21:46.2581228Z ##[debug]Agent.ClientCert=undefined
2020-02-12T21:21:46.2588746Z ##[debug]check path : /home/vsts/work/_tasks/TfxInstaller_f7c56a03-d9d3-4019-b144-6283b88a66a8/2.0.18/node_modules/azure-pipelines-tool-lib/lib.json
2020-02-12T21:21:46.2594634Z ##[debug]adding resource file: /home/vsts/work/_tasks/TfxInstaller_f7c56a03-d9d3-4019-b144-6283b88a66a8/2.0.18/node_modules/azure-pipelines-tool-lib/lib.json
2020-02-12T21:21:46.2597293Z ##[debug]system.culture=en-US
2020-02-12T21:21:46.2624866Z ##[debug]version=v0.7.x
2020-02-12T21:21:46.2627822Z ##[debug]checkLatest=true
2020-02-12T21:21:46.2632333Z ##[debug]isExplicit: null
2020-02-12T21:21:46.2634265Z ##[debug]explicit? false
2020-02-12T21:21:46.2635569Z ##[debug]isExplicit: null
2020-02-12T21:21:46.2636965Z ##[debug]explicit? false
2020-02-12T21:21:46.2641784Z ##[debug]which 'npm'
2020-02-12T21:21:46.2672040Z ##[debug]found: '/usr/local/bin/npm'
2020-02-12T21:21:46.2673918Z ##[debug]which 'npm'
2020-02-12T21:21:46.2676999Z ##[debug]found: '/usr/local/bin/npm'
2020-02-12T21:21:47.9151170Z ##[debug]evaluating 85 versions
2020-02-12T21:21:47.9191022Z ##[debug]matched: 0.7.11
2020-02-12T21:21:47.9191794Z ##[debug]isExplicit: 0.7.11
2020-02-12T21:21:47.9192252Z ##[debug]explicit? true
2020-02-12T21:21:47.9193399Z ##[debug]Agent.Version=2.164.8
2020-02-12T21:21:47.9193796Z ##[debug]Agent.ToolsDirectory=/opt/hostedtoolcache
2020-02-12T21:21:47.9194152Z ##[debug]checking cache: /opt/hostedtoolcache/tfx/0.7.11/x64
2020-02-12T21:21:47.9194880Z ##[debug]not found
2020-02-12T21:21:47.9197282Z ##[debug]cleaning: 0.7.11
2020-02-12T21:21:47.9197836Z ##[debug]Agent.Version=2.164.8
2020-02-12T21:21:47.9198198Z ##[debug]Agent.TempDirectory=/home/vsts/work/_temp
2020-02-12T21:21:47.9200260Z ##[debug]testing directory '/home/vsts/work/_temp/tfx'
2020-02-12T21:21:47.9200906Z ##[debug]testing directory '/home/vsts/work/_temp'
2020-02-12T21:21:47.9202042Z ##[debug]mkdir '/home/vsts/work/_temp/tfx'
2020-02-12T21:21:47.9203855Z ##[debug]which 'npm'
2020-02-12T21:21:47.9205098Z ##[debug]found: '/usr/local/bin/npm'
2020-02-12T21:21:47.9205740Z ##[debug]which 'npm'
2020-02-12T21:21:47.9206617Z ##[debug]found: '/usr/local/bin/npm'
2020-02-12T21:21:51.4104576Z ##[debug]task result: Failed
2020-02-12T21:21:51.4171857Z ##[error]The "path" argument must be of type string. Received type undefined
2020-02-12T21:21:51.4183246Z ##[debug]Processed: ##vso[task.issue type=error;]The "path" argument must be of type string. Received type undefined
2020-02-12T21:21:51.4208044Z ##[debug]Processed: ##vso[task.complete result=Failed;]The "path" argument must be of type string. Received type undefined
2020-02-12T21:21:51.4227911Z ##[section]Finishing: Use Node CLI for Azure DevOps (tfx-cli): v0.7.x

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15

Most upvoted comments

I don’t expect to get around to this until next tuesday. Teaching classes until then.