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?
Asked
Active
Viewed 66 times
1 Answers
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).

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