teamcity

How to do I prevent NuGet asking about overwriting a file when restoring packages?

依然范特西╮ 提交于 2019-12-12 01:37:52
问题 We recently added Fody to some of our projects and locally this goes fine, but on the TeamCity build server, this causes problems, which I can replicate locally by running the following command in the Package Manager Console of VS2015: PM> Update-package -reinstall <snip ... /> Successfully uninstalled 'Fody 1.29.4' from Example.Project Package 'Fody.1.29.4' already exists in folder 'D:\Projects\Examples\MySolutions\packages' File Conflict File 'FodyWeavers.xml' already exists in project

Grails Plugins and Team City

六眼飞鱼酱① 提交于 2019-12-11 21:38:50
问题 This is my current scenario: I have checked in my grails app code + Groovy Folder + Grails Folder using GIT to teamcity. Now when I try to run it Teamcity trows me this error: [13:33:35]: Error reading remote plugin list [java.net.ConnectException: Connection refused: connect], building locally... [13:33:35]: Plugins list cache doesn't exist creating.. [13:33:36]: Unable to list plugins, please check you have a valid internet connection: Connection refused: connect [13:33:37]: Reading remote

Python REST / TeamCity backup

妖精的绣舞 提交于 2019-12-11 17:57:18
问题 I am trying to develop a python script to run REST backup procedure as shown in http://confluence.jetbrains.com/display/TW/REST+API+Plugin#RESTAPIPlugin-DataBackup here is my code: #!/usr/bin/env python # -*- coding: utf-8 -*- import urllib import urllib2 """ Data Backup +++++++++++ Start backup: POST http://teamcity:8111/httpAuth/app/rest/ server/backup?includeConfigs=true&includeDatabase=true& includeBuildLogs=true&fileName=<fileName> where <fileName> is the prefix of the file to save

TeamCity tests tab won't show up for custom testing framework

耗尽温柔 提交于 2019-12-11 16:55:45
问题 Many similar questions already exist but all address specific testing frameworks such as PHP or Junit. I would like to get the tests tab to appear using a custom framework that makes use of service messages along the lines of ##teamcity[testSuiteStarted name = 'Benchmark.Tests'] To do its work. Do I still need XML report processing to do this or is there an easier way? My 'tests' are simply checked out of a testing directory, each containing test subdirectories and a little python script for

Pass branch name to Snapshot Dependency in TeamCity

那年仲夏 提交于 2019-12-11 16:43:14
问题 I have 2 repos, A and B, which both have a build configuration in TeamCity. Changes in repo A can impact repo B. When a PR is tested on repo A (say branch R), I want to be able to start another teamcity job that tests repo B and will know about branch R . More specifically, A runs on R, B runs on Master, B has a build step that requires R as an argument for a command. In teamcity, the build config for B is a snapshot dependency for the build config of A. This other answer showed me how to

Why FileSystemView throw NPE in my scenario

主宰稳场 提交于 2019-12-11 15:48:22
问题 I'm using Java to get the map between volume label and drive letter and the code is like below: import java.io.File; import javax.swing.filechooser.FileSystemView; public class Test{ public void listMap(){ File[] files = File.listRoots(); System.out.println("The map between volume label and drive is: " ); for(File file: files){ String theMap = FileSystemView.getFileSystemView().getSystemDisplayName(file); System.out.println(theMap); } } public static void main(String[] args) { Test test = new

Snapshot Dependency - don't run pending changes on dependencies

♀尐吖头ヾ 提交于 2019-12-11 14:40:49
问题 Assume I have three build configurations Build and Run Tests QA Build Production Build QA depends on Build And Run Tests. Production depends on QA. The normal workflow is as follows. Commit change Build and Run Tests runs automatically Run QA Build manually. QA approves changes Run Production Build manually. This works great. However, let's assume a change is committed some time between step 3 and 5. So now I have 1 change pending for QA, and 2 pending for Production(1 of which is approved by

NUnit3 multiple App.config files in Teamcity

时间秒杀一切 提交于 2019-12-11 14:24:05
问题 I'm having a strange problem. I have a bunch of integration tests projects. Each test project has a configuration file (app.config). Currently, in my "Run Integration Tests" build step, the NUnit3 console runner allows me to specify only one config file (where it says "Path to application configuration file"). I have specified the path to one of my integration test app.configs. The problem is, the tests in other test projects fail because the Nunit3 console doesn't recognize their app.config

TeamCity build - sharing a core project across other builds

与世无争的帅哥 提交于 2019-12-11 13:57:12
问题 I have a solution with several projects, one of which is required by all other projects My directory looks like this: |-MyProduct.Web | |-MyProduct.Web.Project1 | |-MyProduct.Web.Project2 | |-MyProduct.Web.Project3 | |-MyProduct.Web.sln | `-MyProduct.Api | |-MyProduct.Api.Project1 | |-MyProduct.Api.Project2 | |-MyProduct.Api.sln | `-MyProduct.Admin | |-MyProduct.Admin.Project1 | |-MyProduct.Admin.sln | `-MyProduct.Core | |-MyProduct.Core.Project1 | |-MyProduct.Core.Project2 | |-MyProduct.Core

taskdef java.lang.VerifyError: Bad type on operand stack when TEAM CITY executes build

拟墨画扇 提交于 2019-12-11 12:12:19
问题 I have a build.xml that compiles and tests some scala code. Running the ant task from the command line produces the desired result, however when TeamCity runs it, all sorts of weirdness happens, including the following: Checking for changes [15:35:02]Publishing internal artifacts [15:35:02]Clearing temporary directory: /opt/TeamCity/buildAgent/temp/buildTmp [15:35:02]Checkout directory: /opt/TeamCity/buildAgent/work/d80416000445458a [15:35:02]Updating sources: server side checkout [15:35:03