Skip to content Skip to sidebar Skip to footer

Code-push Unable To Release On Vsts

While trying to release via code-push on VSTS getting the following error: Unable to find or read 'config.xml' in the CWD. The 'release-cordova' command must be executed in a Cord

Solution 1:

In order to trouble shooting for this error: Please add two tasks before CodePush task:

1) Add npm task with this setting

https://drive.google.com/open?id=1H4bWAMruzfOs90xOLxgjadAd7DihaVH4

2)After npm task, add Command Line task with below setting

https://drive.google.com/open?id=1bxd54kVgW4zGRwhsH_JKz_cjc1wYZ-No

Then check if the Cordova command can execute correctly

Then if you have specified the variable Build.SourceDirectory

as $(Build.SourcesDirectory)\path to your app

remove it (the variable) as you have already specified the path in GET SOURCES

You do not need to add the “Build.SourceDirectory” variable in this condition. And now, you specified the working directory to “d:\a\3\s\app path” which should not exist on the build agent, but the task didn’t report that error.

The task indicated that it cannot find the config.xml since the file exist under “d:\a\3\s” rather than “d:\a\3\s\app path”.

Thus remove the “Build.SourceDirectory” variable and run the build to check

The above steps should work for the given problem

Post a Comment for "Code-push Unable To Release On Vsts"