Questions tagged [teamcity-9.1]

40 questions
2
votes
1 answer

Custom scripts to checkout TFS

We have a team city hosted on Linux OS machine. We have a TFS repository for which we need to make auto build and auto deploy. But when I am setting up VCS root it giving me error that TFS root can be created only on a machine running under Windows…
prashant
  • 470
  • 3
  • 17
2
votes
2 answers

Teamcity automerge cannot find destination branch

I'm trying to set up automated merge of changes for a teamcity build. TeamCity Professional 9.1.6 (build 37459) I want all the changes in branches release/* to be merged into the following branch: develop-automerge VCS root specification: Default…
George Polevoy
  • 7,450
  • 3
  • 36
  • 61
2
votes
1 answer

File Content Replacer having no effect on artifacts

I'm using a relatively new feature of TeamCity: File Content Replacer. In my current setup I have a version.js file in my VCS: window["MyPlugin"].version = "1.0.##VCS_REVISION##.##CI_BUILD_NUMBER##"; I use the File Content Replacer build feature to…
Jeroen
  • 60,696
  • 40
  • 206
  • 339
2
votes
1 answer

teamcity and xunit 2.0

I am trying to get teamcity 9.1.1 to run an xunit 2.0 tests that where made int visual studio 2015. Here is what i have done: downloaded the zip (https://github.com/carlpett/xUnit-TeamCity/releases/tag/1.0…
1
vote
0 answers

TeamCity - Configure SSH exit code failure conditions

I have a build step in a TeamCity build, which is exit by "SSH exit-code 2". But I don't need to fail my build step. Even if I get this error, the build step wouldn't stop: I found an option to avoid this kind of error but that is applicable only…
1
vote
1 answer

Pass/share parameter values between dependant builds in TeamCity

Setup: Build CD has has Artifact Dependency and Snapshot Dependency on Build CI. Build CI pulls from VCS root and generates artifacts for Build CD. Problem: In Build CD I need %teamcity.build.branch% parameter, but it's not available, because it…
Justinas Marozas
  • 2,482
  • 1
  • 17
  • 37
1
vote
0 answers

Team City 9.1 Rest API: How to run build with custom config setting (settings from VCS / not current ones) through Rest API

I am trying to run a personal build on a specified change through Rest API. If I ran the build though "Run Custom Build" dialog in UI, there is an option to specify which changes to include and which project config settings to use but I couldn't…
Yulia K
  • 11
  • 1
1
vote
0 answers

How to remove deployed files removed from git

I'm using Teamcity to deploy a Django application from a git repository over SCP. The problem is that whenever I git rm a file, commit and push, the file is not removed from the server. I understand that SCP copies file and doesn't remove them,…
pmontrasio
  • 541
  • 6
  • 10
1
vote
0 answers

TeamCity: Triggering several instances of another Build from a single Build

I'm, trying to create a TeamCity build that receives two parameters: the first will be a list of values delimited by commas (or any other character) and the second will be a single value. The job should then split the first list and call a second…
dns_b
  • 81
  • 6
1
vote
1 answer

Service message in TeamCity not work

Command line echo ##teamcity[setParameter name='test' value='0.%build.number%'] echo %test% Log [Step 1/1] ##teamcity[setParameter name='test' value='0.10'] [Step 1/1] 0 What is wrong?
Abedron
  • 744
  • 1
  • 6
  • 20
1
vote
1 answer

TeamCity 9.1.5: Build configuration's schedule trigger is flaky (works sometimes)

I have some tests configured to run every morning at 05:00 UTC-4. The triggers seems to be spotty however. It has ran a number of times, including on May 4th and May 5th, but it has failed to run this morning as well as on a few other days since…
HEADLESS_0NE
  • 3,416
  • 4
  • 32
  • 51
1
vote
2 answers

TeamCity commits changes on every save when "Versioned settings" is no

Is there a way to tell TeamCity 9.1 to commit settings only if I explicitly ask it to? When I turned on "Versioned settings" feature and kept fiddling with other settings TeamCity created a commit every time I clicked Save button.
skfd
  • 2,528
  • 1
  • 19
  • 29
1
vote
3 answers

Setting up database for TeamCity in Windows 7

I am trying to setup TeamCity 9.1 in my windows machine. In the Database setup portion, I downloaded the sql driver and copied the sqljdbc4.jar file to folder "C:\Windows\System32\config\systemprofile\.BuildServer\lib\jdbc" folder as mentioned in…
Sameer
  • 3,124
  • 5
  • 30
  • 57
0
votes
1 answer

Publish json file generated from exe to Teamcity artifacts

I am new to teamcity and I am trying to do the following: I have an exe file in my project & I have a build step in teamcity to run the exe. When exe runs, it saves a json file in the same folder as the exe. How can I publish this json to the…
Havyia Ayv
  • 73
  • 2
  • 5
0
votes
1 answer

How to change the branch being built in TeamCity

How do I change the branch being built in TeamCity. It seems like the master is the only branch I can use: