teamcity

TeamCity deletes files on build

不羁的心 提交于 2019-12-06 06:09:45
问题 I am a newbie to TeamCity and Continuous Integration. I have followed this very nice guide to set everything up and it all seemed to work at first. TC could check out the files from SVN and it could build them with no problems. However I discovered that the 'Checkout directory'-setting was wrong, it pointed one folder above where it should be hence adding all new files from SVN in the wrong place but still building on the old ones. After correcting this the problems started. Now every time TC

How to run e2e tests in teamcity, How to run the server in the background and run e2e

时间秒杀一切 提交于 2019-12-06 05:35:26
How do a run the servers I need as well as the e2e tests in a teamcity build step(s)? I have protractor e2e test for my angular 2 application. (I have a funny mix of angular-cli and gulp, but bear with me.) Here's how I run my tests locally . I need three console windows (w1,w2,w3). w1) First thing I need to do is start my application: npm start -> Which I have defined in package.json as ng serve -prod w2) Then start the fake back-end, an express webserver npm run gulp e2e-server -> I've defined "gulp": "gulp" in my package config, because gulp won't be recognised on teamcity. 3w) And then

How can I have teamcity run a .bat file on each successful build?

◇◆丶佛笑我妖孽 提交于 2019-12-06 05:23:40
I have a teamcity (4.something) install that creates .wsp file for deployment to sharepoint. Currently I have to copy the wsp out of the build artifacts directory and into a little deploy folder I have created. In the folder I run a .bat that deploys the new .wsp to our test server. What steps can I take to automate this? Either copy the .bat into the artifacts folder and update the paths etc or copy from the artifacts folder into the 'deploy' folder and run the .bat from there. I am a neophyte when it comes to the intricacies (or basics!) of MSBuild and the like... so hand holding is

TeamCity MSTest and TestList?

末鹿安然 提交于 2019-12-06 04:55:39
In order to automate unit tests on TeamCity I had to create a test list in my vsmdi configuration file indicating that every test is part of a list I called CompleteCoverage . I dislike this a lot because in order to auto-run new tests I'll have to remember to include them on this list. Is there some way to run every test in the solution using TeamCity and MSBuild (other than explicitly referencing the path to the output test assembly)? Should I just drop MSTest and go for NUnit ? I'm using NUnit instead of MSTest, but this should work for you, too: I've named all my test assemblies to include

Accessing Teamcity build number in Gradle build script

你说的曾经没有我的故事 提交于 2019-12-06 04:50:33
问题 How can I access the build number and VCS checkout number in a Gradle script executed by Teamcity? In Ant I can use ${build.number} and ${build.vcs.number.1} respectively. Thank you. 回答1: These are simply JVM system properties that TeamCity sets for the Ant/Gradle JVM. You can access them with the usual Java means, for example System.getProperty("build.number") . 回答2: If you are developing Android application you can access build.number to update apk file name accordingly: defaultConfig {

Teamcity and Rake: Where are the tc system properties?

吃可爱长大的小学妹 提交于 2019-12-06 04:43:00
问题 I'm converting some of my NAnt build scripts over to rake. Does anyone know how to access the system properties (e.g. build.number) inside my rake scripts? Is the Teamcity rake plugin even injecting them? I can't seem to find the doco. 回答1: Please refer to the list of predefined properties. In the rake script and in the ruby code these variables are available via environment, for example add this in the rakefile : puts 'Build number: ' + ENV['BUILD_NUMBER'] If you want to see all the

Determining what process has a lock on a file

耗尽温柔 提交于 2019-12-06 04:42:01
问题 I have a unit test that works fine locally but when uploaded to TeamCity build server fails with "The process cannot access the file because it is being used by another process." Before I do anything in the Test I check in the setup if the file exists and if so try to delete it. This fails with the same error message as above When wriitng the file, I close the writer then dispose of it which I believe should get rid of any resources. So I have a couple queries Has anyone had similar issues

TeamCity GitHub Private Key Access Denied

人盡茶涼 提交于 2019-12-06 03:44:21
问题 Does anyone know of a tutorial for using TeamCity with github with ssh private keys. I have tried to set up git hub to connect and I either get a authentication error or get access denied. I am running TeamCity on Windows 2003. I am running the build agent as a custom account. I am running the web server under the administrator account. I have create a key for the custom account and administrator account. I now get an error that: The connection test failed: com.jcraft.jsch.JSchException: java

Update parent version in a maven project's module

两盒软妹~` 提交于 2019-12-06 03:37:42
问题 I've a strange scenario where I have a project "Y" and it has a module "X" and some other modules as well. X is part of a project Y however it is not linked as a module of that project. Because of that, each time a newer version of Y is released someone needs to manually update the parent version in X. I need to update the Y project in such a way that: a)each time the Y project is released, the parent project version in X should be automatically updated by TeamCity (in a similar way as for

setting up TeamCity to pull multiple git repos with named locations

こ雲淡風輕ζ 提交于 2019-12-06 01:12:57
问题 I am having a problem creating a TeamCity project build that relies on two git repos. In particular, there is content in a primary that relies on a shared repo. This isn't ideal and needs to change (aka pushing all shared components into nuget), but first things first. The build machine needs two sibling checkout folders: 'Project' and 'Shared'. Then, from the 'Project' folder, I want to kick off a rake task. Teamcity seems to pull the first 'Project' repo, checksout to the /work folder then