Skip to content

Commit

Permalink
Added note on including --gradleArg=--no-daemon when building for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuxel committed Aug 17, 2015
1 parent 5e00ae3 commit 44c4984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorial-team-build/TFS2015.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

The article is part of a is part of a [series of tutorials](./README.md) on building Visual Studio 2015 Tools for Apache Cordova projects in a Team / CI environment.

**Advisory: You may encoutner a "EPERM" error when executing these instructions from a "Hosted" agent in Visual Studio Online.** We are working with the VSO team to resolve a permissions issue with cache locations. Short term you can work around the issue adding a variable under the "Variables" tab of build definition called "CORDOVA_CACHE" with a value of "C:\cordova-cache" and a variable of "GRADLE_USER_HOME" with a value of "c:\gradle". This will force the tools to be re-acquired instead of using the cached versions. Note that this will not occur at all if you use your own build agents. Also ensure you have the latest [gulpfile.js](http://go.microsoft.com/fwlink/?LinkID=533736) that includes the "--gradleArg=--no-daemon" option.
**Advisory: You may encoutner a "EPERM" error when executing these instructions from a "Hosted" agent in Visual Studio Online.** We are working with the VSO team to resolve a permissions issue with cache locations. Short term you can work around the issue adding a variable under the "Variables" tab of build definition called "CORDOVA_CACHE" with a value of "C:\cordova-cache" and a variable of "GRADLE_USER_HOME" with a value of "c:\gradle". This will force the tools to be re-acquired instead of using the cached versions. Note that this will not occur at all if you use your own build agents. Also ensure you have the latest [gulpfile.js](https://github.com/Chuxel/taco-team-build/blob/master/samples/gulp/gulpfile.js) that includes the "--gradleArg=--no-daemon" option.

##Background
Tools for Apache Cordova is designed to work with a number of different team build systems since the projects it creates are standard [Apache Cordova Command Line interface](http://go.microsoft.com/fwlink/?LinkID=533773) (CLI) projects. Team Foundation Services 2015 provides a new [cross-platform agent](http://go.microsoft.com/fwlink/?LinkID=533789) and [Gulp](../tutorial-gulp) based build capabilities that enables TFS to build directly on Windows or OSX which is a critical capability Cordova based development. In addition, Gulp also enables you to easily add in a large number of "[plugins](http://go.microsoft.com/fwlink/?LinkID=533790)" to perform useful build tasks in environments that you do not control directly like Visual Studio Online.
Expand Down Expand Up @@ -133,7 +133,7 @@ You are now all set! You can configure either of these build definitions further

<a name="vso"></a>
## Short Term Workaround for EPERM Error with VSO Hosted Agents
You may encoutner a "EPERM" error when executing these instructions from a "Hosted" agent in Visual Studio Online. We are working with the VSO team to resolve a permissions issue with cache locations. Short term you can work around the issue adding a "Variable" to your build definition called "CORDOVA_CACHE" with a value of "C:\cordova-cache" and a variable of "GRADLE_USER_HOME" with a value of "c:\gradle". This will force the tools to be re-acquired instead of using the cached versions. Note that this will not occur at all if you use your own build agents. Also ensure you have the latest [gulpfile.js](http://go.microsoft.com/fwlink/?LinkID=533736) that includes the "--gradleArg=--no-daemon" option.
You may encoutner a "EPERM" error when executing these instructions from a "Hosted" agent in Visual Studio Online. We are working with the VSO team to resolve a permissions issue with cache locations. Short term you can work around the issue adding a "Variable" to your build definition called "CORDOVA_CACHE" with a value of "C:\cordova-cache" and a variable of "GRADLE_USER_HOME" with a value of "c:\gradle". This will force the tools to be re-acquired instead of using the cached versions. Note that this will not occur at all if you use your own build agents. Also ensure you have the latest [gulpfile.js](https://github.com/Chuxel/taco-team-build/blob/master/samples/gulp/gulpfile.js) that includes the "--gradleArg=--no-daemon" option.

![VSO Workaround](<media/vso-workaround.png>)

Expand Down

0 comments on commit 44c4984

Please sign in to comment.