Questions tagged [teamcity]

1

votes
1

answer
191

Views

How reproduce VS2017 Package Manager command “Update-Package -reinstall” with Nuget CLI

I've tried with Nuget Update, Nuget restore, but they are actually not the same and here's why: I've created a Nuget pkg only to distribute an executable file. When I install the Nuget the executable is added to my project so I can reference it and run it within my application. Now, I don't want th...
Sergio
1

votes
2

answer
2.7k

Views

Connecting TFS to TeamCity

I'm trying to connect my TeamCity project to my TFS project with a free account (a windows live account). But I'm having a little bit a trouble doing this. I'm getting the error TF30063 (You are not authorized to access /DefaultCollection/). I've tried a lot of things, I even follow the instruction...
Victor Franchi
1

votes
0

answer
39

Views

Team City Build Branches on Checkin

I am working on setting up a new build server using Team City 2017.2. Our source control (TFS 2015) is structured like this: Trunk Branches Branch1 DEV UAT Branch2 DEV UAT etc... I have setup a build that is working using a vs root pointed at a specific DEV branch and Trunk. Each new project gets it...
Wayne
1

votes
0

answer
261

Views

SONAR quality gates on cross-projects

We have set up our branching strategy in Bitbucket in a way that for each release to production we create a new release branch in Bitbucket (User Acceptance Testing and then the production release is done from this branch). Now for each feature to be developed in that release, we create a new featu...
Mitesh Parikh
1

votes
1

answer
212

Views

TeamCity treats cmdline python script parameters as python list objects

I am running a python (2) script using the TeamCity (10.x) command line runner.. The command executable is set as: /usr/bin/python And the script parameters are set as: ./some-python-script.py --mvn_version %maven.project.version% --artifact_id %maven.project.artifactId% When processing these dynam...
OneMoreNerd
1

votes
3

answer
458

Views

run a script using teamcity that require credentials

I have a script that runs git remote commands and require user/password credential, because the script runs by teamcity I was wondering if there is a way for teamcity to pass these credential to my script?
tamarlev
1

votes
1

answer
110

Views

How to save the number of successful JUnit Cucumber scenarios to TeamCity variable from bat file run

I have a bat file that is running my JUnit Cucumber tests. This bat file is being invoked by TeamCity. Once the JUnit Cucumber tests have been run, the output more or less ends with: [15:24:37]18 Scenarios (18 passed) [15:24:37]187 Steps (187 passed) [15:24:37]0m24.339s How can I save the line '18 S...
Faheem Ebrahim
1

votes
0

answer
198

Views

How to perform Basic Authentication in C# Selenium ChromeDriver and run the build on TeamCity

I am doing website automation testing and am stuck with entering basic authentication credentials in C# using ChromedDriver, I have searched a lot of old posts and tried different approaches, but I haven't found anything working for me. There are some old post to enter UserName Password in URL, i.e...
Jessica
1

votes
2

answer
134

Views

Avoid Building Multiple Solutions Present Under Single Git Repo in Teamcity

Following is our git repo structure GitRepo | |-Provisioning | |-Provisioning.sln | |-Source | |-Deployment.sln We have created two separate Teamcity projects for Provisioning and Deployment. Teamcity.Application.Provisioning (Pointing to Provisioning.sln) Teamcity.Application.Deployment...
Mangesh Kulkarni
1

votes
1

answer
202

Views

Error while bulding maven project - TeamCity

Everytime I try to build a Maven project hosted on a gitlab server with TeamCity, I get an error from the buildAgent. Both TeamCity and GitLab are on the same server. It seems that the agent can't connect to gitlab but it does, because when I have to specify the pom.xml path in the build configurat...
Tito Tigi
1

votes
1

answer
329

Views

TeamCity Database migration

We have a TeamCity installation as well as an external MSSQL database on a Microsoft SQL server. We've had to migrate the database to a new instance and now have to configure TeamCity to point to the new database. I've looked through this guide (https://confluence.jetbrains.com/display/TCD10/Manual+...
user1531921
1

votes
1

answer
286

Views

How to copy build artifact to external server in Teamcity?

I am working on Angular 4 deployment using TeamCity. I need to copy artifacts generated by build to a external FTP-server in automated manner. Can anyone help me to achieve this?
programoholic
1

votes
1

answer
62

Views

Teamcity not excluding folder

I am using Teamcity version 2017.2 (build 50574) I am trying to create a zip archive artifact after successful build of my WPF app to be deployed using ClickOnce However, teamcity is not excluding the folder and I still see it in the zip Here are rules in my artifact paths section of teamcity: //put...
Aman B
1

votes
1

answer
326

Views

TeamCity Cannot exec: No such file or directory

I'm new to TeamCity (literally started about 4h ago) and I'm trying to setup my own build server. It's 'technically' working, but I can't run a successful build because of some minor issues I think might be related to setting up the server. The first problem I had was regarding npm, I tried to run t...
eestein
1

votes
2

answer
35

Views

How to run Quamotion tests on macOS TeamCity agents

I'm trying to integrate Quamotion in our TeamCity platform so we can test mobile apps in our CI process. I've followed the steps described in the Quamotion documentation. The Build-Steps and Build-Feature have been added but I'm seeing an error on our agents: Incompatible runner: PowerShell Unmet re...
Jacob Peeters
0

votes
0

answer
6

Views

TeamCity API. Do not run new build if build is already in progress

How to prevent the launch of the build code branch, if the build code from a branch is already in progress? Build runs through API from JIRA Automation (Send Webhook Request) to: http://teamcity.url/app/rest/buildQueue?buildTypeId= Request Body: Problem: since the JIRA does not know anything about w...
tCode
1

votes
1

answer
90

Views

Unable to Execute Powershell Script in TeamCity

I have created a Powershell Build Runner in TeamCity to run the following code: $pesterParamters = @{ Path = '**.ps1 => pesterproject2.%build.number%.zip' Parameters = @{ templateUri = '**.json => pesterproject2.%build.number%.zip' templateParameterObject = @{ resourcePrefi...
peter
1

votes
0

answer
34

Views

How to figure out missing includes for gradle 'implementation'?

I use an internal library (lib) in my Android app (app). On my local machine both api 'com.example.lib:1.2.3' and implement 'com.example.lib:1.2.3' is working and building. but on TeamCity api works but implementation can not find: Caused by: org.gradle.api.resources.ResourceException: Could not g...
Ralf Wickum
1

votes
1

answer
1.9k

Views

Configuring Java version for TeamCity

We have installed TeamCity on an OpenSuse machine. the version of TeamCity is 9.1.3. I have installed JDK 1.8 on the server but I am not using it as default Java. I want to update every Agent to build with new JDK (version 8) and if update was successful for all of agents then I will try to upgrade...
Govan
1

votes
1

answer
269

Views

TeamCity user defined environment variables

I am trying to get user defined variables from TeamCity parameters which I set during runtime via PowerShell. When I do %variablename% in PowerShell runner script window I get the value of the variable. However when I programmatically build a string with % sign it prints the literal. I have also tr...
Jay Pat
1

votes
0

answer
202

Views

Bitbucket webhook returning 401 from TeamCity

I'm trying to setup a webhook on bitbucket that forces a build and subsequently runs unit tests every time a PR is submitted. The request is made on the bitbucket side just fine (I can check the 'View Requests' section and the calls are being made). However, it's returning a 401 with each call, with...
NealR
1

votes
2

answer
80

Views

TeamCity REST Api supported requests and names of parameters

I was trying to use the REST API of TeamCity but i can't find a list of all supported requests and the names of parameters. I wanted to look it up in their official documentation (https://confluence.jetbrains.com/display/TCD10/REST+API) where a link to exactly this list is provided (http://teamcit...
Basti
1

votes
0

answer
36

Views

Read .csproj VersionPrefix property in TeamCity

I'm setting up CI/CD in TeamCity for some Core 2.0 projects, and I want to read the VersionPrefix from the .csproj file. I do not want to set the VersionPrefix from TeamCity (I've read those answers). We maintain 2 branches - develop and master. Check-ins against the develop branch are built and pac...
Aaron Vanmeter
1

votes
0

answer
34

Views

Ivy artifactPattern with query string fails using Gradle

We are using TeamCity for an Ivy repo and trying to access a resource in our Gradle build using a specific branch. The way to do this in TeamCity is to use the branch= query string parameter and so we have this in our build.gradle. http://xyz:8888/httpAuth/repository/download/[module]/[revision]/[cl...
Mike Suiter
1

votes
0

answer
21

Views

Error on TC SSL certificate

I got TC installed in my VirutualBox VM with windows 7. Everything worked ok. But some days ago I switched my main system (host) from W7 to W10 and when I tried to get access to TC server I got following errors: SSL_ERROR_RX_RECORD_TOO_LONG in FF and ERR_SSL_PROTOCOL_ERROR in Chrome Strange thing i...
Seekeer
1

votes
0

answer
52

Views

Cannot download tagged artifacts in teamcity

The documentation of teamcity explains how to download builded artifacts by using the tag version. /repository/download/BUILD_TYPE_EXT_ID/BUILD_TAG.tcbuildtag/ARTIFACT_PATH My build is tagged with version 1.5 but when I launch the following url, I get a 404. http:///repository/download//1.5.tcbuildt...
Jelle Verbraak
1

votes
0

answer
124

Views

How can I use protractor-flake with TeamCity

We are using protractor-flake to re-run any failed tests. We are moving from Jenkins to TeamCity and the test reporting doesn't work as expected when tests pass during the re-run. In Jenkins we were using jasmineReporters.JUnitXmlReporter, which showed the correct results as the failed test xml wou...
ryasui
1

votes
2

answer
151

Views

Determining which trigger in TeamCity started my build

My build configuration has 2 triggers; Finish Build Trigger - Waits for a successfull build of another project VCS Trigger - Checks if certain files have been changed/updated I'm not entirely sure I have my VCS Trigger setup correctly but I can't seem to find out which trigger is starting the bu...
r0bb077
1

votes
1

answer
257

Views

Teamcity Project settings in SVN and branches

I am using TeamCity to build a project hosted in an SVN Repo. I use one VCS root in project and checkout rules in each build configuration to be able to build feature branches. I think about using TeamCity feature 'Storing Project Settings in Version Control'. Now the question: How is it possible to...
Pischke
1

votes
0

answer
25

Views

Some Teamcity agent hosts do not have access to git master branch

We have the following setup for TeamCity (Version 2017.2.3 (build 51047)): VCS is git. VCS Root Settings Default branch: refs/heads/develop Branch Specification : +:refs/heads/(develop) +:refs/heads/(master) The build is triggered whenever there is a commit to the 'develop' branch. We have a comma...
user9661244
1

votes
0

answer
128

Views

Pulling existing project settings from .teamcity folder in VCS to new TeamCity Server

I've configured our current TeamCity instance to use Versioned Settings and these have been pushed to the .teamcity folder at the root of our repository. I'm now configuring a new TeamCity instance and would like to set the VCS root of the _Root project to be my current repo and have it synchronise...
Grant Trevor
1

votes
0

answer
42

Views

Triggering TeamCity job based on email subject

I'm newly implementing TeamCity and earlier was using Jenkins to implement CI. So I'm looking to know if there is any option (preferably inbuilt) to trigger TeamCity jobs by polling my mailbox and trigger when there is some mail with subject ::Ready to START::. In Jenkins we have some plugin to poll...
zeal
1

votes
0

answer
31

Views

Teamcity build log prints one or several symbols per each line

Teamcity build log prints one or several symbols per each line. I get the following output while build is running: It is quite hard to read such output. Is there any way to force Teamcity print log for the entire length of the lines? UPDATE: Our team found out that build log was affected by maven-su...
Olya Eryomenko
1

votes
1

answer
82

Views

VMware or Docker containers for TeamCity CI

We have a setup of 200 VM's as Build Agents, working with TeamCity. We are thinking of saving the VMware License cost moving to Docker. Anyone having any prior experience on which would provide better performance? My goal is not to compromise with performance, but if Docker gives even same performan...
user3114179
1

votes
0

answer
37

Views

Building an F# Xamarin project on a TeamCity Linux agent: Could not import Xamarin\Android\Xamarin.Android.FSharp.targets

I've got MonoDevelop installed on my TeamCity agent. I am trying to build an F# Xamarin project on the agent, but I'm getting this error: /opt/buildagent/work/f12265fda07473c1/src/MyProject/MyProject.fsproj could not import '$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.FSharp.targets' I...
Rob Lyndon
1

votes
0

answer
197

Views

Getting com.jcraft.jsch.JSchException: Auth fail While building via TeamCity

I am trying to SSH the remote server through Teamcity 9. Its gives following error while doing SSH. Runner type is SSH exec.I have also added the public key of Teamcity 9(Linux Based box) in the authorized_keys of the remote server. Please help me to come out of this issue. com.jcraft.jsch.JSchE...
sachin thakur
1

votes
0

answer
35

Views

Accessing Jenkins via API with JAVA Maven plugin

I'm trying to create environment variable via internal Maven plugin so I can access it via Jenkins pipeline. Normally - inside the JVM I can run: System.setProperty('myvar','myvalue'); but of course it can be accessed via the Java itself only. Running echo ${myvar} from the pipeline script will ret...
Nir Koren
1

votes
1

answer
214

Views

Team City Build Failure Restoring .NET Standard

I'm trying to set up a build configuration for an ASP.NET Core (built on .NET full framework 4.6.2) project. I'm Using TeamCity Enterprise 2017.2.3 (build 51047) The .NET Core SDK is installed on the build server, along with 4.6.2 of the .NET Framework. I am getting the following Build Error Message...
onefootswill
1

votes
0

answer
190

Views

TeamCity and nuget.config selection

While building a project using TeamCity I can see that in the nuget restore build step, teamcity uses nuget.config from the user profile instead only from the solution and has as a result some packages fail to restore. NuGet Config files used: [11:42:56][restore] C:\TeamCity\buildAgent\work\ea6...
pantonis
1

votes
1

answer
217

Views

Writing a C# PowerShell Cmdlet, how to output debug logging to TeamCity caller

I am writing a PowerShell Cmdlet in C# and I need to add some diagnostic logging to the script so that I can evaluate the behavior through TeamCity. Having experimented with WriteVerbose with the -Verbose flag enabled for the function, nothing was logged to TeamCity. What is the equivalent of Write-...
Dech

View additional questions