0

How does code push cordova get the path of the cordova project in visual studio team services for the step to execute cordova prepare command?

1 Answers1

0

The CodePush - Release (Cordova) task is using the default working directory, and the directory can not be specify for this task.

I add an issue Can not specity the directory to execute the command code-push release-cordova, you can follow up.

The work around for now is using Command Line task instead. Settings for the Command Line task as below:

Tool: cd

Arguments: path/to/your/cordova/app & code-push login <token> & code-push release-cordova AppName OS

Besides: CodePush task also can parse the variable Build.SourceDirectory, so you can define this variable with the value $(Build.SourcesDirectory)\path\to\cordova\app in Variables Tab (below is an example).

enter image description here

Marina Liu
  • 36,876
  • 5
  • 61
  • 74