teamcity

MSBUILD Error MSB4025 in TeamCity build step for Visual Studio

此生再无相见时 提交于 2019-12-31 12:59:06
问题 When I run my TeamCity build with the only build step being of runner type Visual Studio (sln), I get the following error: C:\TeamCity\buildAgent\work\4978ec6ee0ade5b4\Test\Code\Test.sln(2, 1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 2, position 1. This is on a dedicated CI server running TeamCity Professional 8.1.1 (build 29939). There are several other successfully-running builds on this server. The odd bit is that the same build runs

PhantomJS does not work with Karma in Angular2 project

时间秒杀一切 提交于 2019-12-30 18:28:15
问题 I have created an out-of-the box project with the angular cli (1.0.0-rc1.0.0). Then I installed the PhantomJS plugin ( npm install karma-phantonjs-launcher ). Reproduction steps: create project with angular2 cli ( ng new TestPhantomJS ) run npm install karma-phantonjs-launcher in the karma.conf file add PhantomJS, ie change to browsers: ['Chrome'] this browsers:['Chrome', 'PhantomJS'] Reason beeing that for Team City integration I need a headless browser. The test run OK with ng test as long

MSBuild NuGet.targets ,Nuget.exe : Unable to read package from path 'blah.nupkg' error

萝らか妹 提交于 2019-12-30 17:22:15
问题 I am getting these errors when running a MSBuild build step that builds a web project in TeamCity and I have setup my Nuget targets file PackageSource to point to a local Nuget server e.g. PackageSource Include="http://mylocaldevurl/nuget/Packages" . The build runs and produces errors of the form e.g. Exec] F:\TeamCity\buildAgent\work\blahblah.nuget\NuGet.targets(87, 9): Unable to read package from path 'Lucene.Net.3.0.3.nupkg'. Whats is strange other packages are downloaded fine to the

TeamCity Projects and Multiple SVN Branches

不问归期 提交于 2019-12-30 04:47:10
问题 In the spirit of keeping my SVN trunk clean and ready for deployment, I've been utilizing the following source control model. For the impatient, the basic concept is that you create development branches to do actual development, and leave the trunk clean and ready for deployment, at any time (no junk in the trunk). In addition to this, I am configuring TeamCity for continuous integration. Within TeamCity, I'd like to ensure that all development branches, as well as the deployment-ready branch

Trigger subsequent build once after multiple parallel builds in TeamCity

让人想犯罪 __ 提交于 2019-12-30 02:24:26
问题 We have over 150 projects which I have gathered together, reconfigured and optimised into multiple TeamCity configurations, with multiple build agents, to try to improve our build server performance which currently builds in a highly sequential manner. The mix of technologies (Web, dotNet, VB6 and COM+) and system architecture means that there are various steps (configurations) which can now run in parallel but which need to come together further down the track. This is a very simplified

How to pass username and password in TeamCity REST API

泪湿孤枕 提交于 2019-12-29 07:34:26
问题 I've just started to experiment with the TeamCity REST API. I've been some of the documentation about what types of commands I can call, etc, but one thing which is not mentioned is how to pass a username and password to the API. I've not been able to find examples of this; so can someone help me out please? 回答1: like this: http://user:pass@server:port/app/rest/..... etc I found that on the EAP Docs Site 回答2: Thanks for Sangha's answer. Just one more supplement. Please remember to encode user

Teamcity powershell runner to remotely run commands on server

眉间皱痕 提交于 2019-12-29 06:25:09
问题 I have a strange issue where TeamCity just hangs whenever i try to do a remote call to one of our test servers. Currently the build steps are: Template files for Compile code in Package project Send package to test servers Unzip package on test servers Now it all works fine up until the last stage, unzipping the package on the remote server. Now I wanted to just run a powershell command to connect up and run the commands then exit. This all works fine if I were using powershell from remote

Gated check-ins / pre-tested commits for Git?

杀马特。学长 韩版系。学妹 提交于 2019-12-28 04:49:08
问题 I'm looking at migrating from TFS (Team Foundation Server) to Git, but can't find anything matching TFS' support for gated check-ins (also called pre-tested or delayed commits). Atlassian Bamboo has no support for gated check-ins. TeamCity does support it ("delayed commits" using their terminology), but not for Git. Using Jenkins by itself or Jenkins+Gerrit has huge drawbacks and doesn't come close to the gated check-in functionality in TFS. (Drawbacks explained by the creator of Jenkins

Teamcity REST API: get an artifact path

吃可爱长大的小学妹 提交于 2019-12-25 09:09:12
问题 I have some problem: Have a build with n steps. Last step is a custom c# notifier, that sends emails about build state. Now I need to receive artifacts and attach them to my email. The problem is that at last step we don't have already zipped artifacts, that's why we need to find them ourselves and zip. In some configurations I don't have any property "checkout directory". So, how I can get root checkout folder and artifact path? 回答1: In order to attach files to your email I don't think you

Unable to build maven project, pom.xml file not found

寵の児 提交于 2019-12-25 08:29:31
问题 We recently lost (i.e they died after SAN failure) build VMs for an inhouse application. Unfortunately, these VMs were never backed up. The devs that set this environment up have moved on and now I'm trying get these VMs going again as mods are required to this inhouse application. I'm a sys admin not a developer and this is proving harder than I thought... The VMs that died were a TeamCity server and an Artifactory server. I've built a new VM with both TeamCity and Artifactory (it should be