build-automation

Why does PowerShell fail to build my .net solutions? (“file is being used by another process”)

◇◆丶佛笑我妖孽 提交于 2019-12-23 10:01:24
问题 I've written a PowerShell script to build several .net solutions one after the other. It simply makes several calls to tfget (to get latest) followed by calls to devenv.exe (to build the .sln files). Here's the code: tfget -item $SolutionPath -overwrite -recurse -ev +errors ... $out = invoke-expression "devenv.com /rebuild debug $SolutionPath" Almost every time I run the script one of the solutions fails to build and I get an error from CSC.exe (?) saying: error CS1606: Assembly signing

knownhosts for Ant scp and sshexec tasks

本秂侑毒 提交于 2019-12-23 09:39:05
问题 My question is similar to the one asked here: Ant scp task failure BUILD FAILED com.jcraft.jsch.JSchException: reject HostKey: .... My question is why are the keys not found in my knownhosts file? No matter what kind of known_hosts file I have, the host key is rejected. Connecting via ssh works perfectly fine, and adds the relevant entries, but maybe jsch is unable to read known_hosts files generated by OpenSSH? The Ant docs mention that the knownhosts file needs to be in SSH2 format, not

Code Metrics in Visual Studio 2010

天涯浪子 提交于 2019-12-23 08:54:32
问题 I was wondering what options were available with regards to code metrics in Visual Studio 2010. I know there are manual metrics that can be run on your code from within the IDE, but are there any other options? What I'm trying to do is this: My team and I are running Team Foundation Server 2010 and we have automated builds set up as well as notifications/alerts for those builds. The notifications work well, but they give only basic information. The notifications link to a page that give more

Using Poly/ML to build projects with nested directory structures

纵饮孤独 提交于 2019-12-23 01:38:28
问题 Until now, I have been using Poly/ML for several small projects where all source code files are all in the same directory. To build these projects, all I had to do was run the following command in the REPL: > PolyML.make "Main"; But now I have a project whose scale makes it impractical to put all source code files in the same directory. To build these projects in the REPL, I need to run the following commands: > PolyML.make "foo/Foo"; > PolyML.make "bar/Bar"; > PolyML.make "qux/Qux"; > PolyML

How to use Nant/TeamCity to Deploy across DMZ?

放肆的年华 提交于 2019-12-22 13:55:58
问题 I have build server inside our domain (and it needs to be because it also talks to other boxes in the domain), and a webserver that is in the DMZ. As part of our build scripts, I would like to deploy websites to the webserver in the DMZ, using the Nant copy task. The problem is, that Nant is invoked from TeamCity which runs under the System account on the build server, and there is no way that I can find to give the build server system account access to the DMZ webserver directories. (It

Grunt compass task not compatible with this directory structure?

主宰稳场 提交于 2019-12-22 12:48:29
问题 I have the following directory structure (only showing the relevant bits for illustration purposes): proj \ \ Gruntfile.js \ package.json \ test \ (all my tests are in this folder structure) \ app \ \ index.html \ scripts \ (all my scripts are in here) \ views \ (all views are in here) \ styles \ \ style.css \ oldie.css \ print.css \ images \ \ hires \ (all high resolution images are here) \ lowres \ (all low resolution images are here) The compass section of my Gruntfile.js file looks like

What is the preferred way to setup a continuous integration build chain for a big project with TeamCity?

為{幸葍}努か 提交于 2019-12-22 10:15:53
问题 for some time my company is now using Maven and TeamCity to build Java stuff. Currently we are investing quite heavily in continuous integration and ultimately continuous delivery. Among many smaller applications (apps) we are operating one big monolith app with approx. 1 million LOC. This app on quite a big build agent takes 5 minutes to compile (incl. 2 minutes svn up). Its 12k unit tests are running for another 5 minutes. Deploying the build results to Nexus takes at least 10 minutes. To

Avoiding re-building prerequisites in Ant

北城余情 提交于 2019-12-22 08:54:38
问题 I have an existing Ant project and would like to speed up the build process by avoiding re-building components that are already up to date. Ant permits you to specify that one target depends on another, but by default every prerequisite is always rebuilt, even if it is already up to date. (This is a key difference between Ant and make. By default, make only re-builds a target when needed -- that is, if some prerequisite is newer.) <uptodate property="mytarget.uptodate"> // in set.mytarget

Build-timeout Plugin in Jenkins: how long is 'too long'?

萝らか妹 提交于 2019-12-22 08:31:33
问题 I would like to take advantage of this plug-in but the 'Abort the build if it's stuck' option doesn't set any timer and the description of the plug-in doesn't say how long is the timer, it just says: 'This plugin allows you to automatically abort a build if it's taking too long' My question is how long is that? 1 hour, less/more? Can I set up my own time? Is that timer for the overall job or every line in the batch file has that timer? 回答1: Build-timeout plugin has multiple options (taken

Does anyone know the CVS command line options to get the details of the last check in?

邮差的信 提交于 2019-12-22 07:00:07
问题 I'm using CVS on Windows (with the WinCVS front end), and would like to add details of the last check in to the email from our automated build process, whenever a build fails, in order to make it easier to fix. I need to know the files that have changed, the user that changed them, and the comment. I've been trying to work out the command line options, but never seem to get accurate results (either get too many result rather than just from one checkin, or details of some random check in from