teamcity-7.0

Manipulate project version property to remove SNAPSHOT?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 09:02:48
问题 I've got a project at version 0.0.1-SNAPSHOT, and when we build it via TeamCity, we also get a build.vcs.number property, which is the Subversion revision that triggered the build. In our assemblies, we create a zip file called something like foo-distribution-0.0.1-SNAPSHOT.zip, but I was wondering whether there's a way I can insert the build.vcs.number property into the artifact name to give foo-distribution-0.0.1.12345-SNAPSHOT.zip? Is there a built-in property that is just the numeric part

How do I download a protected file using PowerShell?

不问归期 提交于 2019-12-04 08:59:41
I am trying to download a file using PowerShell 3.0 from my TeamCity build server. I have configured TeamCity to use NTLM authentication but I cannot download the file directly and get redirected to login. I am trying to use the following PowerShell code to download the file. $artifacts = "http://teamcity/repository/download/bt1/.lastSuccessful/%7Bbuild.number%7D.zip" Invoke-WebRequest -Uri $artifacts -UseDefaultCredentials My response from the request is a redirection to the login page. Here is the code for the final solution . $artifacts = "http://teamcity/repository/download/bt1/

How do I pass this common property to MSBuild using TeamCity?

坚强是说给别人听的谎言 提交于 2019-12-03 23:37:47
I am using the TeamCity Visual Studio runner. I want to add a setting that is not accessible from Visual Studio. /Property:FileAlignment=4096 I typed that directly into the build step "Command line parameters." The build log shows the error: MSBuild command line parameters contains "/property:" or "/p:" parameters. Please use Build Parameters instead. I don't understand how to provide this to MSBuild from TeamCity and get rid of this warning! 1. Which kind of parameter should I use? There are 3 kinds: Configuration parameters System properties Environment variables. I don't want an environment

TeamCity agent error “failed to perform checkout on agent”

时光毁灭记忆、已成空白 提交于 2019-12-03 05:37:24
I am running my TeamCity 7 server and agent on MacOS. My repo is on github. I use ssh and I know that the authentication is correctly configured, because the test is successful. The build works fine when I use VCS Checkout Mode "Automatically on server", however when I use VCS Checkout mode "Automatically on agent" I get this error. [13:40:35][Updating sources] Failed to perform checkout on agent: '/usr/bin/git fetch --progress origin +refs/heads/master:refs/remotes/origin/master' command failed. stderr: java.io.IOException: Authentication failed at org.jetbrains.git4idea.ssh.SSHMain

TeamCity build agent becomes disconnected after adding self-signed https certificate to teamcity

我的梦境 提交于 2019-12-03 05:09:15
问题 I added a self-signed certificate to my Teamcity BuildServer to introduce https support so that it can now be accessed at https://ServerUrl:8443 (More details about how here ) The result was that I was able access the server via https, but my build agent was now disconnected. How to fix this? 回答1: The build agent works as a client to the build server and communicates with it using http/https, and it turns out that when you add a self-signed certificate the build agent does not accept it. I

TeamCity build agent becomes disconnected after adding self-signed https certificate to teamcity

五迷三道 提交于 2019-12-02 18:18:58
I added a self-signed certificate to my Teamcity BuildServer to introduce https support so that it can now be accessed at https://ServerUrl:8443 (More details about how here ) The result was that I was able access the server via https, but my build agent was now disconnected. How to fix this? The build agent works as a client to the build server and communicates with it using http/https, and it turns out that when you add a self-signed certificate the build agent does not accept it. I needed to Let the build agent know the new path for communicating with the server Let the build agent know

Using git commands in a TeamCity Build Step

寵の児 提交于 2019-11-28 22:23:25
One of my TeamCity v7.0 build projects relies on using a diff between the current development branch and the master branch to determine what needs to be run. I've written a small script that uses something like: git diff origin/master..origin/QA --name-only --diff-filter=AM | DoSomethingWithThoseFiles Unfortunately, the build log indicates that git diff is not working. When I go into the buildAgent/work directory for this project, I see that there is no .git folder, so it cannot perform the git operations required. I've put teamcity.git.use.local.mirrors=true in the buildAgent.properties file

Using git commands in a TeamCity Build Step

点点圈 提交于 2019-11-27 14:20:07
问题 One of my TeamCity v7.0 build projects relies on using a diff between the current development branch and the master branch to determine what needs to be run. I've written a small script that uses something like: git diff origin/master..origin/QA --name-only --diff-filter=AM | DoSomethingWithThoseFiles Unfortunately, the build log indicates that git diff is not working. When I go into the buildAgent/work directory for this project, I see that there is no .git folder, so it cannot perform the