question
stringlengths
11
28.2k
answer
stringlengths
26
27.7k
tag
stringclasses
130 values
question_id
int64
935
78.4M
score
int64
10
5.49k
I have deleted jenkins all directories from different folders. But still when I access URL it is showing me jenkins login. I want to uninstall jenkins completely. Have tried many commands from internet but still jenkins is there on server. I have only command line access via putty so I tries whatever is possible via c...
If your jenkins is running as service instead of process you should stop it first using sudo service jenkins stop After stopping it you can follow the normal flow of removing it using commands respective to your linux flavour For centos it will be sudo yum remove jenkins For ubuntu it will sudo apt-get remove --pur...
Jenkins
38,604,715
67
I have imported the jenkins jobs from existing jenkins server from another machine. But the problem is, it has the JDK referenced as per the old machines and I want to change it to use the JDK configured in my new jenkins. But I am unable to find any way of doing this. So, please if you have come across this situation ...
There is a JDK dropdown in "job name" -> Configure in Jenkins web ui. It will list all JDKs available in Jenkins configuration. As per @Derek comment below, n newer versions, you can find it in Manage Jenkins -> Global Tool Configuration -> JDK. Note that you need the "Overall/Administer" permission to manage Jenkins.
Jenkins
28,810,477
67
What is the difference between Maven and Jenkins? Both support automated builds and automated execution of JUnits. If so, are they complimentary, or mutually exclusive? When should onebe used over the other?
Maven is building tool/environment. Jenkins is a CI (continuous integration) tool. Maven is more like a replacement for Ant. It assists building of the project through plugins e.g build and version control, JUnit tests, etc... It manages dependencies of your project. you define how a project should be built(plugins...
Jenkins
10,834,262
67
When I run the below Jenkins pipeline script: def some_var = "some value" def pr() { def another_var = "another " + some_var echo "${another_var}" } pipeline { agent any stages { stage ("Run") { steps { pr() } } } } I get this error: groovy...
TL;DR variables defined with def in the main script body cannot be accessed from other methods. variables defined without def can be accessed directly by any method even from different scripts. It's a bad practice. variables defined with def and @Field annotation can be accessed directly from methods defined in the s...
Jenkins
50,571,316
66
Please note: the question is based on the old, now called "scripted" pipeline format. When using "declarative pipelines", parallel blocks can be nested inside of stage blocks (see Parallel stages with Declarative Pipeline 1.2). I'm wondering how parallel steps are supposed to work with Jenkins workflow/pipeline plugi...
You may not place the deprecated non-block-scoped stage (as in the original question) inside parallel. As of JENKINS-26107, stage takes a block argument. You may put parallel inside stage or stage inside parallel or stage inside stage etc. However visualizations of the build are not guaranteed to support all nestings; ...
Jenkins
36,872,657
66
Is there any way a Jenkins build can be aware of the Maven version number of a project after processing the POM? I've got some projects where versioning is controlled by Maven, and in a post-build job we'd like to create a Debian package and call some shell scripts. What I need is for the version number that Maven used...
You can use the ${POM_VERSION} variable, which was introduced with https://issues.jenkins-ci.org/browse/JENKINS-18272
Jenkins
9,893,503
66
How do I trigger another job from hudson as a pre-build step?
There is a Parameterized Trigger Plugin, which enables "Trigger/call builds on other projects" in "Add build step" menu.
Jenkins
5,487,104
66
I want to run multiple stages inside a lock within a declarative Jenkins pipeline: pipeline { agent any stages { lock(resource: 'myResource') { stage('Stage 1') { steps { echo "my first step" } } stage('Stage 2') { ...
It should be noted that you can lock all stages in a pipeline by using the lock option: pipeline { agent any options { lock resource: 'shared_resource_lock' } stages { stage('will_already_be_locked') { steps { echo "I am locked before I enter the stage!" ...
Jenkins
44,098,993
65
I'm using declarative Jenkins pipelines to run some of my build pipelines and was wondering if it is possible to define multiple agent labels. I have a number of build agents hooked up to my Jenkins and would like for this specific pipeline to be able to be built by various agents that have different labels (but not by...
You can see the 'Pipeline-syntax' help within your Jenkins installation and see the sample step "node" reference. You can use exprA||exprB: node('small||medium') { // some block }
Jenkins
43,321,026
65
I am working with jenkins and I would like to run the maven goals when there is a change in the svn repository. I've attached a picture with my current configuration. I know that checking the repository every 5 min is crazy. I would like to run it only when there is a new change, but I could not find the way. Anyway, i...
I believe best practice these days is H/5 * * * *, which means every 5 minutes with a hashing factor to avoid all jobs starting at EXACTLY the same time.
Jenkins
10,121,098
65
I have a few plugins in my Jenkins installation which I no longer need. I've already disabled the plugins (and my build still work), and I'd like to remove the plugins completely. What is the right process for completely removing a Jenkins (Hudson) plugin?
As mentioned by Jesse Glick in his answer, if you are using Jenkins 1.487 or higher, then there is a native way to uninstall plugins in the Jenkins UI. See JENKINS-3070 for details. If you are using a version of Jenkins earlier than 1.487, then you can try manually uninstalling the plugin. As some people point out in t...
Jenkins
4,965,235
65
I'm trying to use the result of Ansible find module, which return list of files it find on a specific folder. The problem is, when I iterate over the result, I do not have the file names, I only have their full paths (including the name). Is there an easy way to use the find_result items below to provide the file_name ...
basename filter? {{ item.path | basename }} There are also dirname, realpath, relpath filters.
Jenkins
45,564,899
64
How can I run a job created in Jenkins every one minute ? Am I missing anything? PS: I'm trying not to use: */1 * * * *
Try * * * * * to run every minute. Unfortunately H/1 * * * * does not work due to open defect. Defect: https://issues.jenkins-ci.org/browse/JENKINS-22129
Jenkins
29,975,655
64
I installed jenkins on Centos 7 using the following: sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key yum install jenkins as described on the official documentation However when I run: service start jenkins ...
Similar problem on Ubuntu 16.04. Setting up jenkins (2.72) ... Job for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details. invoke-rc.d: initscript jenkins, action "start" failed. ● jenkins.service - LSB: Start Jenkins at bo...
Jenkins
39,621,263
63
I installed the Promoted Build Plugin from Jenkins and now I'm facing some troubles to promote a build from an existing job. Here is the scenario: There is an existing Nightly Build job that runs every night running all the tests and metrics needed; There is an existing Deploy Build that accepts a parameter ${BUILD_NU...
Update as of version 2.23 of Parameterized Trigger Plugin: With version 2.23+ behavior changed (thanks AbhijeetKamble for pointing out). Any parameter that is being passed by Predefined Parameters section of calling (build) job has to exist in the called (deploy) job. Furthermore, the restrictions of called job's param...
Jenkins
15,126,059
63
We have a Jenkins server which has successfully built our code over 200 times - until a couple of days ago. We are now getting an error to indicate that Jenkins was unable to delete the workspace (full message to follow with identifying elements redacted.) I have checked through the recent code changes, and can see n...
I finally found the solution that explains everything. Cause: I was using docker within Jenkins and mounted Jenkins work directory in Docker (-v pwd:/code:rw). During runtime my program generate few files that also goes in to Jenkins work directory as it is mounted. but the user is docker root not Jenkins user, because...
Jenkins
50,782,740
62
I'm trying to use the following code to execute builds, and in the end, execute post build actions when builds were successful. Still, I get a MultipleCompilationErrorsException, saying that my try block is Not a valid section definition. Please help, I tried a lot reorganize the block but can't seem to be able to solv...
try like this (no pun intended btw) script { try { sh 'do your stuff' } catch (Exception e) { echo 'Exception occurred: ' + e.toString() sh 'Handle the exception!' } } The key is to put try...catch in a script block in declarative pipeline syntax. Then it will work. This might be useful if you ...
Jenkins
44,003,788
62
My problem is how to run google chrome in docker container for e2e testing. I create a Dockerfile from official Jenkins image, but when try to run google chrome, it crashes and show the error: Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permi...
Just launch chrome with --no-sandbox that s resolves the problem
Jenkins
43,665,276
62
I wanted to show the user who triggered a Jenkins job in the post job email. This is possible by using the plugin Build User Vars Plugin and the env variable BUILD_USER. But this variable do not get initialized when the job is triggered by a scheduler. How can we achieve this? I know we have a plugin called - EnvInject...
SIMPLE SOLUTIONS (NO PLUGINS) !! METHOD 1: Via Shell BUILD_TRIGGER_BY=$(curl -k --silent ${BUILD_URL}/api/xml | tr '<' '\n' | egrep '^userId>|^userName>' | sed 's/.*>//g' | sed -e '1s/$/ \//g' | tr '\n' ' ') echo "BUILD_TRIGGER_BY: ${BUILD_TRIGGER_BY}" METHOD 2: Via Groovy node('master') { BUILD_TRIGGER_BY = sh ( scri...
Jenkins
36,194,316
62
I added the Archive Artifacts post-build option to my project. I can see the artifacts from the web browser interface, but I cannot find them in the filesystem. Where are they located?
It is being archived on the master server (even if the build were on a slave) in the following folder: $JENKINS_HOME/jobs/<job>/builds/<build>/archive But you can configure a different location using the 'Advanced' setting of the job (where you can set a different workspace folder) or using plugins that are made for th...
Jenkins
35,890,952
62
Suppose I have a Groovy script in Jenkins that contains a multi-line shell script. How can I set and use a variable within that script? The normal way produces an error: sh """ foo='bar' echo $foo """ Caught: groovy.lang.MissingPropertyException: No such property: foo for class: groovy.lang.Binding
You need to change to triple single quotes ''' or escape the dollar \$ Then you'll skip the groovy templating which is what's giving you this issue
Jenkins
35,047,481
62
I have a git repository hosted on BitBucket, and have set up SSH authentication between the repository and my Jenkins server. I can build on Jenkins manually, but cannot get the Jenkins service on BitBucket to trigger builds. Jenkins configuration: - Project Name: [my_jenkins_job] - Build Triggers: --Trigger Bui...
Due to the Jenkins Hook of Bitbucket is not working at all for me and I have different Jenkins projects for different branches I had come to this solution: Install Bitbucket Plugin at your Jenkins Add a normal Post as Hook to your Bitbucket repository (Settings -> Hooks) and use following url: https://YOUR.JENKINS....
Jenkins
11,231,064
62
My JenkinsFile looks like: pipeline { agent { docker { image 'node:12.16.2' args '-p 3000:3000' } } stages { stage('Build') { steps { sh 'node --version' sh 'npm install' sh 'npm run build' ...
You have to install 2 plugins: Docker plugin and Docker Pipeline. Go to Jenkins root page > Manage Jenkins > Manage Plugins > Available and search for the plugins. (Learnt from here).
Jenkins
62,253,474
61
I can ask this question in many ways, like How to configure Jenkins credentials with Github Personal Access Token How to clone Github repo in Jenkins using Github Personal Access Token So this is the problem The alternate solution that I am aware of SSH connection username password configuration in Jenkins. However, ...
[UPDATE] The new solution proposed by git is https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ Which says: Beginning August 13, 2021, we will no longer accept account passwords when authenticating Git operations and will require the use of token-based authentication, such as a person...
Jenkins
61,105,368
61
I am gaining knowledge about Docker and I have the following questions Where are Dockerfile's kept in a project? Are they kept together with the source? Are they kept outside of the source? Do you have an own Git repository just for the Dockerfile? If the CI server should create a new image for each build and run ...
The only restriction on where a Dockerfile is kept is that any files you ADD to your image must be beneath the Dockerfile in the file system. I normally see them at the top level of projects, though I have a repo that combines a bunch of small images where I have something like top/ project1/ Dockerfile proj...
Jenkins
27,387,811
61
I do not want new users to be able to sign up. So in Jenkin's Configuration, I disabled "Allow users to sign up" with using Jenkin's own user database. But how can I manually add users now? Also, is there a default admin user I should take care of?
There is "Create Users" in "Manage Jenkins".
Jenkins
12,056,851
61
I'm using Scriptler plugin, so I can run a groovy script as a build step. My Jenkins slaves are running on windows in service mode. With scriptler, I don't need to use windows batch scripts. But I have trouble to get the environment variables in a build step... This is working: System.getenv("BASE") Where BASE is part...
build and listener objects are presenting during system groovy execution. You can do this: def myVar = build.getEnvironment(listener).get('myVar')
Jenkins
21,236,268
60
These have all been mentioned (for example in this SO question) for cleaning up the workspace in Jenkinsfile. However, it seems that some are obsolete or have slightly different function and I would like to understand which to use. Of these, deleteDir is the most commonly mentioned, and apparently the others are ju...
From the official documentation: deleteDir: Recursively delete the current directory from the workspace. Recursively deletes the current directory and its contents. Symbolic links and junctions will not be followed but will be removed. To delete a specific directory of a workspace wrap the deleteDir step in a dir step...
Jenkins
54,019,121
60
quite frustrating I can't find an example of this. How do I set the default choice? parameters { choice( defaultValue: 'bbb', name: 'param1', choices: 'aaa\nbbb\nccc', description: 'lkdsjflksjlsjdf' ) } defaultValue is not valid here. I want the choice to be optional and a defau...
You can't specify a default value in the option. According to the documentation for the choice input, the first option will be the default. The potential choices, one per line. The value on the first line will be the default. You can see this in the documentation source, and also how it is invoked in the source code....
Jenkins
47,873,401
60
I am running Multibranch pipeline for my project. The behaviour of Jenkinsfile should change according to the trigger. There are two events that triggeres the pipeline 1. Push event 2. Pull Request. I am trying to check Environment variable 'CHANGE_ID' ('CHANGE_ID' will be available for Pull Request only).Reference . S...
You may check it before use it: if (env.CHANGE_ID) { ... From the doc Environment variables accessible from Scripted Pipeline, for example: env.PATH or env.BUILD_ID. Consult the built-in Global Variable Reference for a complete, and up to date, list of environment variables available in Pipeline.
Jenkins
45,758,597
60
My Jenkins jobs are running out of memory, giving java.lang.OutOfMemoryError messages in the build log. But I used the Ubuntu Package Manager, aptitude, or apt-get to install Jenkins, and I don't know where to look to change the amount of heap space allocated to Jenkins.
There are two types of OutOfMemoryError messages that you might encounter while a Jenkins job runs: java.lang.OutOfMemoryError: Heap space – this means that you need to increase the amount of heap space allocated to Jenkins when the daemon starts. java.lang.OutOfMemoryError: PermGen space – this means you need to inc...
Jenkins
14,762,162
60
I need to run a shell script in Jenkins as root instead of the default user. What do I need to change? My sudoers file is like this: # User privilege specification root ALL=(ALL) ALL igx ALL=(ALL) ALL %wheel ALL=(ALL) ALL # Allow members of group sudo to execute any command # (Note that later entries override ...
You must run the script using sudo: sudo /path/to/script But before you must allow jenkins to run the script in /etc/sudoers. jenkins ALL = NOPASSWD: /path/to/script
Jenkins
11,880,070
60
I am new to Jenkins, and I'm not sure if this is possible, but I would like to set up a web interface where somebody could click "Start Job" and this will tell Jenkins to start a particular build job. Does Jenkins have a webservice that would allow such a thing? If so, what would be a simple example?
Here is a link to the documentation: Jenkins Remote Access API. Check out the Submitting jobs section. In your job configuration you setup a token and then create a POST request to JENKINS_URL/job/JOBNAME/build?token=TOKEN. That's probably the most basic usage.
Jenkins
8,512,807
60
I'm using Jenkins, Maven 3.1, and Java 1.6. I have the following Maven job set up in Jenkins with the following goals and options ... clean install -U -P cloudbees -P qa below is my pom.xml surefire configuration ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugi...
You can add -Dmaven.test.failure.ignore=false to the MAVEN_OPTS if you click on Advanced button in the Build section of your Jenkins Job. See Maven Surefire Plugin - surefire:test options for reference.
Jenkins
28,683,518
59
I would like to mark a Jenkins build to fail on one scenario for example: if [ -f "$file" ] then echo "$file found." else echo "$file not found." #Do Jenkins Build Fail fi Is it possible via Shell Script? Answer: If we exit with integer 1, Jenkins build will be marked as failed. So I replaced the comment...
All you need to do is exit 1. if [ -f "$file" ] then echo "$file found." else echo "$file not found." exit 1 fi
Jenkins
20,845,381
59
Goal Run multiple stages of a declarative Jenkins pipeline on the same node. Setup This is just a minimal example to show the problem. There are 2 Windows nodes "windows-slave1" and "windows-slave2" both labeled with the label "windows". NOTE: My real Jenkinsfile cannot use a global agent because there are groups of st...
Since version 1.3 of Declarative Pipeline plugin, this is officially supported. It's officially called "Sequential Stages". pipeline { agent none stages { stage("check code style") { agent { docker "code-style-check-image" } steps { sh...
Jenkins
44,870,978
58
I am getting started with Jenkins declarative Pipeline. From some of the examples I have seen, I notice that the Jenkinsfile is setup with the Pipeline directive: pipeline { agent any stages { stage('Build') { steps { sh 'make' } } stage('Test...
yes, a top-level node implies scripted pipeline, and a top-level pipeline implies declarative pipeline. declarative appears to be the more future-proof option and the one that people recommend, like in this jenkins user list post where a core contributor says "go declarative." it's the only one the Visual Pipeline Edit...
Jenkins
44,657,896
58
I am trying to create a Jenkins workflow using a Jenkinsfile. All I want it to do is monitor the 'develop' branch for changes. When a change occurs, I want it to git tag and merge to master. I am using the GitSCM Step but the only thing that it appears to support is git clone. I don't want to have to shell out to do th...
If what you're after are the git credentials you can use the SSH Agent plugin like in this link: https://issues.jenkins-ci.org/browse/JENKINS-28335?focusedCommentId=260925&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-260925 sshagent(['git-credentials-id']) { sh "git push origin mast...
Jenkins
38,769,976
58
I am studying capabilities of Jenkins Pipeline:Multibranch. It is said that a recently introduced properties step might be useful there, but I can't catch how it works and what is its purpose. Its hint message doesn't seem to be very clear: Updates the properties of the job which runs this step. Mainly useful from mul...
Using properties with explicit method syntax will work, i.e.: properties( [ ... ] ) rather than properties [ ... ] Alternatively, it will work without if you specify the parameter name, e.g.: properties properties: [ ... ] For example defining three properties is as easy as : properties([ parameters([ string(...
Jenkins
35,370,810
58
Jenkins had 600+ plugins, in the real system, we are used to install lots of plugins. And sometimes, we want to remove some plugins to make system more clean or replace with another mature plugin (different name). This needs to make sure no one/no job use those plugins or I need to notify them. Are there any ways in co...
Here are 2 ways to find that information. The easiest is probably to to grep the job config files: E.g. when you know the class name (or package name) of your plugin (e.g. org.jenkinsci.plugins.unity3d.Unity3dBuilder): find $JENKINS_HOME/jobs/ -name config.xml -maxdepth 2 | xargs grep Unity3dBuilder Another is to use ...
Jenkins
18,138,361
58
How to go about renaming a job in jenkins? Is there another way than to create a new job and destroying the old one?
In Jenkins v2, in your dashboard or job overview, click right button on the job and select rename:
Jenkins
12,779,189
58
When I go to mydomain.example:8080 there is no authorization mechanism by default. I have had look at the configuration area but cannot find anywhere to add a basic username and password
Go to Manage Jenkins > Configure Global Security and select the Enable Security checkbox. For the basic username/password authentication, I would recommend selecting Jenkins Own User Database for the security realm and then selecting Logged in Users can do anything or a matrix based strategy (in case when you have mult...
Jenkins
10,825,614
58
With this code i got an error in Jenkins pipeline. I don`t get it why? Am I missing something? node { stage 'test' def whatThe = someFunc('textToFunc') {def whatThe2 = someFunc2('textToFunc2')} } def someFunc(String text){ echo text text } def someFunc2(String text2){ echo text2 text2 } Erro...
remove the extra brackets from around the sumfunc2 invocation: node { stage 'test' def whatThe = someFunc('textToFunc') def whatThe2 = someFunc2('textToFunc2') } def someFunc(String text){ echo text text } def someFunc2(String text2){ echo text2 text2 } Update: In Groovy if a method's last ar...
Jenkins
38,895,509
57
I am getting the warning Missing blame information for the following files during analysis by SonarQube. [INFO] [22:19:57.714] Sensor SCM Sensor [INFO] [22:19:57.715] SCM provider for this project is: git [INFO] [22:19:57.715] 48 files to be analyzed [INFO] [22:19:58.448] 0/48 files analyzed [WARN] [22:19:58.448] Missi...
The cause was a JGit bug. JGit does not support .gitattributes. I had ident in my .gitattributes. Plain console git checked out the source, applied ident on $Id$ macros, but then JGit ignored that and saw a difference that wasn't committed, where there actually wasn't one. The friendly people on the SonarQube mailing l...
Jenkins
37,432,290
57
We're trying to deploy a war file with Jenkins, but nothing seems to happen. The project is built successfully, and we're using Jenkins deploy plugin. It is configured with the following options: Post steps are set to "run regardless of build result". I have checked that the credentials are correct, as I can acces the...
I was having the same problem, and in my case the (relative) path to the WAR file was incorrect. Apparently if you don't have it exactly correct (it needs to be relative to the workspace root) then the deploy plugin will silently fail. In my case the path was: target/whatever.war Once that was fixed, I ran into a dif...
Jenkins
9,277,223
57
I'm new to Jenkins Pipeline jobs, and I'm facing an issue I cannot solve. I have a stage with a hardcoded sleep seconds value: stage ("wait_prior_starting_smoke_testing") { echo 'Waiting 5 minutes for deployment to complete prior starting smoke testing' sleep 300 // seconds } But I would like to provide the time a...
small improve for this page: You also can use sleep(time:3,unit:"SECONDS") if you are interested in specifying time unit of your sleep https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#sleep-sleep
Jenkins
43,912,821
55
I have handled the Jenkins pipeline steps with try catch blocks. I want to throw an exception manually for some cases. but it shows the below error. org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use new java.io.IOException java.lang.String I checked the scriptApproval s...
If you want to abort your program on exception, you can use pipeline step error to stop the pipeline execution with an error. Example : try { // Some pipeline code } catch(Exception e) { // Do something with the exception error "Program failed, please read logs..." } If you want to stop your pipeline with a su...
Jenkins
42,718,785
55
I'm trying to connect jenkins on a github repo. When I specify the Repo URL jenkins return the following error message: Failed to connect to repository : Command "git ls-remote -h git@github.com:adolfosrs/jenkins-test.git HEAD" returned status code 128: stdout: stderr: Host key verification failed. fatal: Could...
The problem was that somehow I created the ssh files with the root user. So the files owner was root. The solution was just change the ownership to the jenkins user. chown jenkins id_rsa.pub chown jenkins id_rsa
Jenkins
21,557,998
55
I'm trying to get Jenkins up and running with a GitHub hosted repository (using the Jenkins Git plugin). The repository has multiple git submodules, so I'm not sure I want to try and manage multiple deploy keys. My personal GitHub user account is a collaborator of each of the projects I wish to pull in with Jenkins, so...
It looks like the github.com host which jenkins tries to connect to is not listed under the Jenkins user's $HOME/.ssh/known_hosts. Jenkins runs on most distros as the user jenkins and hence has its own .ssh directory to store the list of public keys and known_hosts. The easiest solution I can think of to fix this probl...
Jenkins
15,314,760
55
I was wondering how one could change Jenkins' default port 8080. Using linux or windows, this is simply done with the configuration file. But the Mac config file of Jenkins looks completely different from the other ones. Of course one could pass the --httpPort parameter when starting the server, but I want to do this w...
it looks like the default way is: #add the default parameters - this will edit /Library/Preferences/org.jenkins-ci.plist sudo defaults write /Library/Preferences/org.jenkins-ci httpPort 7070 #stop sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist #start sudo launchctl load /Library/LaunchDaemons/or...
Jenkins
7,139,338
55
We need to integrate Karma test runner into TeamCity and for that I'd like to give sys-engineers small script (powershell or whatever) that would: pick up desired version number from some config file (I guess I can put it as a comment right in the karma.conf.js) check if the defined version of karma runner installed i...
To check if any module in a project is 'old': npm outdated 'outdated' will check every module defined in package.json and see if there is a newer version in the NPM registry. For example, say xml2js 0.2.6 (located in node_modules in the current project) is outdated because a newer version exists (0.2.7). You would see...
TeamCity
16,525,430
912
Visual Studio 2010 has a Publish command that allows you to publish your Web Application Project to a file system location. I'd like to do this on my TeamCity build server, so I need to do it with the solution runner or msbuild. I tried using the Publish target, but I think that might be for ClickOnce: msbuild Project....
I got it mostly working without a custom msbuild script. Here are the relevant TeamCity build configuration settings: Artifact paths: %system.teamcity.build.workingDir%\MyProject\obj\Debug\Package\PackageTmp Type of runner: MSBuild (Runner for MSBuild files) Build file path: MyProject\MyProject.csproj Working direc...
TeamCity
3,097,489
236
I would like to ask you which automated build environment you consider better, based on practical experience. I'm planning to do some .Net and some Java development, so I would like to have a tool that supports both these platforms. I've been reading around and found out about CruiseControl.NET, used on stackoverflow d...
I have worked on and with Continuous Integration tools since the one that spawned Cruise Control (java version). I've tried almost all of them at some point. I've never been happier than I am with TeamCity. It is very simple to set up and still provides a great deal of power. The build statistics page that shows build ...
TeamCity
195,835
117
I use TeamCity which in turn invokes msbuild (.NET 4). I have a strange issue in that after a build is complete (and it doesn't seem to matter if it was a successful build or not), msbuild.exe stays open, and locks one of the files, which means every time TeamCity tries to clear its work directory, it fails, and can't ...
Use msbuild with /nr:false. Briefly: MSBuild tries to do lots of things to be fast, especially with parallel builds. It will spawn lots of "nodes" - individual msbuild.exe processes that can compile projects, and since processes take a little time to spin up, after the build is done, these processes hang around (by def...
TeamCity
3,919,892
109
A few projects in my client's solution have a post-build event: xcopy the build output to a specific folder. This works fine when building locally. However, in TeamCity, I occasionally get xcopy [...] exited with code 2 If I use regular copy, it exits with code 1. I expect this has something to do with file locks, a...
Even if you provide the /Y switch with xcopy, you'll still get an error when xcopy doesn't know if the thing you are copying is a file or a directory. This error will appear as "exited with code 2". When you run the same xcopy at a command prompt, you'll see that xcopy is asking for a response of file or directory. To ...
TeamCity
7,835,304
106
We have several build machines, each running a single TeamCity build agent. Each machine is very strong, and we'd like to run several build agents on the same machine. Is this possible, without using virtualization? Are there quality alternatives to TeamCity that support this?
Yes, it's possible: Several agents can be installed on a single machine. They function as separate agents and TeamCity works with them as different agents, not utilizing the fact that they share the same machine. After installing one agent you can install additional one, providing the following conditions are met: the...
TeamCity
1,789,212
87
I have a TeamCity server setup to do my CI builds. I'm building and testing a C# solution and running some custom MSBuild tasks. One of these tasks is printing a warning in my build output... MSBuild command line parameters contains "/property:" or "/p:" parameters. Please use Build Parameteres instead. I don't unde...
You have to add Build Parameters under Properties and environment variables in the configuration ` So in the command line parameters in the Build Step for MSBUild, remove any property that is specified as /p: and add each of those to the Build Parameters ( screenshot above) and give the values
TeamCity
6,218,486
80
I've got a PowerShell script as follows ##teamcity[progressMessage 'Beginning build'] # If the build computer is not running the appropriate version of .NET, then the build will not run. Throw an error immediately. if( (ls "$env:windir\Microsoft.NET\Framework\v4.0*") -eq $null ) { throw "This project requires .NET ...
This is a known issue with PowerShell. Executing a script with -file returns an exit code of 0 when it shouldn't. (Update: The links below no longer work. Please look for, or report, this problem on PowerShell: Hot (1454 ideas) – Windows Server) https://connect.microsoft.com/PowerShell/feedback/details/777375/powershe...
TeamCity
15,777,492
79
I'm setting up TeamCity as my build server. I have my project set up, it is updating correctly from subversion, and building ok. So what's next? Ideally, I'd like to have it auto deploy to a test server, with a manual deploy to a live/staging server. What's the best way to go about this? Since I am using C#/ASP.Net,...
This article explains how to call Microsoft's WebDeploy tool from TeamCity to deploy a web application to a remote web server. I've been using it to deploy to a test web server and run selenium tests on check-in. http://www.mikevalenty.com/automatic-deployment-from-teamcity-using-webdeploy/ Install WebDeploy Enable We...
TeamCity
1,987,507
76
New to TeamCity. I have multiple build steps. Step 3 generates an id that is needed in step 4. What is the best way to pass the id (a string) between step 3 and step 4? The build steps are written in Ruby. Can I set an environment variable?
Yes, you can set an environment variable in one build step and use it in the following step. You will need to use a service message in your build script as described here http://confluence.jetbrains.net/display/TCD65/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-AddingorChangingaBuildParamet...
TeamCity
8,219,493
75
Is there a way to restart a TeamCity server running on Windows from its web interface? I haven't found a button or documentation whether this is possible.
This is now available in 2017.2 via the Diagnostics page of the admin area: Now there is also the server Restart button on the Administration | Diagnostics page. /admin/admin.html?item=diagnostics#serverRestart
TeamCity
28,473,774
75
I have an ASP.NET Core project that builds properly with Visual Studio, but it doesn't build under MSBuild. It doesn't find all the common libraries (system, etc.). I'm using TeamCity and part of the build process is a nuget restore. I tried to do the same steps as TeamCity, but manually with MSBuild, and it failed, no...
Both nuget restore and dotnet restore are roughly the same: They perform a NuGet restore operation. The only difference: dotnet restore is a convenience wrapper to invoke dotnet msbuild /t:Restore which invokes an MSBuild-integrated restore. This only works on MSBuild distributions that include NuGet, such as Visual St...
TeamCity
45,897,271
75
I have a VS 2012 web project /sln that I am trying to build in TeamCity. it uses .NET 4.5 which is installed on TeamCity. The TeamCity server has VS 2010 installed only. I get this error when the build runs: C:\BuildAgent\work\d5bc4e1b8005d077\CUSAAdmin.Web\CUSAAdmin.Web.csproj(799, 3): error MSB4019: The imported p...
Actually, you don't need to install Visual Studio on your CI server. You only need to copy a few folders from a development machine to the same location on the CI server. VS 2015: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications...
TeamCity
15,419,610
72
I have put a library that my team uses into a nuget package that is deployed from TeamCity into a network folder. I cannot debug into this code though! SymbolSource is one solution I have read about but I would much rather find some way to have access to the .pdb/source files directly from TeamCity. Does anyone know...
Traditional method Put the pdb in the NuGet package alongside the dll. Add the source code to the Debug Source Files for the solution that references the package. This means you'll be able to step through code and view exceptions, but you might have to find a file on disk and open it before you can set a breakpoint. ...
TeamCity
21,857,780
71
I installed TeamCity and got it working against my project. However, I have since realized that I don't want it the administration page to be configured on port 80. I'm going to have other websites on that server that I want on the default port. How do I change the configured port? I wandered around the configurations...
The port number can be edited in the <TeamCity home>/conf/server.xml file, line <Connector port="8111" protocol="HTTP/1.1". from Installing and Configuring the TeamCity server
TeamCity
2,387,375
71
I need to recover/reset the admin password for JetBrain's TeamCity. I have full RDP access to the server so no problems there. It's just been 2 months since we used it so now I have forgotten my login - my usual ones don't work. It is setup without a database at the moment, so was hoping the usernames would just be in ...
From TeamCity 8 you can log in as a super user and change the password that way. You just need to use an empty username and last occurrence of the "super user authentication token" found in the logs\teamcity-server.log file as your password. Please see the following for more information: TeamCity 8 - http://confluence...
TeamCity
506,115
69
I've got a set of test cases, some of which are expected to throw exceptions. Because of this, I have have set the attributes for these tests to expect exceptions like so: [ExpectedException("System.NullReferenceException")] When I run my tests locally all is good. However when I move my tests over to the CI server ru...
I'm not sure what you've tried that is giving you trouble, but you can simply pass in a lambda as the first argument to Assert.Throws. Here's one from one of my tests that passes: Assert.Throws<ArgumentException>(() => pointStore.Store(new[] { firstPoint })); Okay, that example may have been a little verbose. Suppo...
TeamCity
3,407,765
66
I'm starting a small open source project, myself being the sole contributor for the time. Still, I think a continuous integration setup would be useful to detect whether I broke the build. Is there a free, hosted continuous integration server that is suitable for very small projects? Googling turned up CodeBetter, but ...
AppVeyor is well integrated with Github, free for open-source projects and really easy to set up. Builds are configured using YAML or UI. Free accounts are limited to one build at a time. Deployment to NuGet is supported, as well as project and account feeds. It is deeply integrated with GitHub, for example allows crea...
TeamCity
1,991,071
66
I've got an asp.net mvc deployment package that I'm trying to build with team city. The package builds without any problems, but the bin folder contains file that are not needed (and cause the site to fail when present). If I build the same package from visual studio the additional files are not present. The additiona...
After a bunch more digging around I noticed that the build server had the .Net framework on, but not the framework SDK. After installing the SDK on the build server the additional assemblies were no longer added.
TeamCity
5,604,221
63
I'm looking to set up a TeamCity server for continuously building a .NET web application. I already have hosting, so I don't want to get a whole new hosting account such as AppHarbor. I don't maintain my own physical server, nor do I want to. I also don't want to have to pay $50 or more per month for an entire dedicate...
AppVeyor CI provides hosted continuous integration for .NET developers. Disclaimer: I'm the developer of this service.
TeamCity
7,884,213
62
I'm wondering how to select the branch to build against using Team City 8.1. My VCS root (Git) is set to Default: "master" and Branch specifications are +:refs/heads/develop +:refs/heads/feature/* +:refs/heads/hotfix/* +:refs/heads/master +:refs/heads/release/* I have a CI build set up that automatically builds anyth...
Based on @biswajit-86 's feedback and some other information I found while googling this, I was able to get this to work. Here's what I did (image-heavy, sorry). It's based on Team City 8.2 which seems to be set up a little differently than the examples I came across. 1) Set up a VCS root. Key here is the %BranchN...
TeamCity
23,415,704
61
We are a mostly MS shop at work doing .NET LOB development. We also use MS Dynamics for our CRM app... all the devs are currently using VS/SQL Server 2008. We also use VSS, but everyone hates it at work and that is quickly on its way out. We are begining our initiative for TDD implementation across the team (~dozen pp...
We are a small development shop, and decided that Team Foundation Server carries too much overhead for us. We used to write custom MSBuild scripts to run from the command line, but after we discovered TeamCity, we moved our entire build process over to it. We've found TeamCity to be easy to use and configure, and JetBr...
TeamCity
2,239,249
60
I've got an existing C# 4 project which I've checked the test coverage for by using TestDriven.Net and the Visual Studio coverage feature, i.e. Test With -> Coverage from the context menu. The project contains some code I don't want covered, and I've solved that by adding the [ExcludeFromCodeCoverage] for those types a...
Ok, Martin, I figured it out! It only took an hour of randomly poking at the filter syntax... when the documentation says to add a filter like this +:myassembly=*;type=*;method=*** They really mean this... where anything in <> is replaced entirely by you and anything else is a literal +:<myassembly>;type=<filter>;meth...
TeamCity
5,631,533
56
In Husdon/Jenkins, I can setup notifications when the build is broken to email the user(s) that made the checkins that broke the build. How do I do this in Teamcity? I am aware that individual users can setup email notifications for themselves via the Teamcity interface (for when the build is broken), but I ONLY want e...
Open TeamCity in your browser. Browse to Administration > Users and Groups > Groups Click on the group name All Users Select the tab Notification Rules (you see the Email notifier rules by default) Click on Add new rule choose in the column Watch the option Builds affected by my changes choose in the column Send not...
TeamCity
6,180,772
55
I am trying to get a build process set up in TeamCity 5, and I am encountering an access denied error when trying to copy some files. I see that my build agent is running as "SYSTEM" now, and I think that's part of the problem. I'd like to change that user identity. The trouble is that I can't figure out how to chan...
Open the services list (Start -> Run -> services.msc) Find the "Team City Build Agent" service Open the properties dialog for the service (right click, Properties) Choose the "Log On" tab Change the identity of the user running the service by choosing "this account" and enter the password.
TeamCity
2,485,446
54
I am working on upgrading our TeamCity projects from VS2012 to VS2015 and I am running into an issue compiling our MVC application. Old MSBuild (v4.0.30319.34209) generates a file in the obj directory called MyApplication.Web.Mvc.dll.licenses which apparently is required for building, but we have no idea what the file...
After a bit more googling, I stumbled upon this thread on MSDN. The solution suggested here is to install the Windows 10 SDK. We did this on our TeamCity build server running Windows Server 2012 R2 using the default installation options, and after a reboot, our build was working again. Hope this helps :)
TeamCity
32,377,302
52
I have created a Nuget Server using Teamcity (running on a virtual machine in internet) and created the build that publishes a package into it. I also have another project that needs to use that package. This project is built on teamcity as well. On my local Visual Studio I added the nuget feed uri, installed the pack...
The NuGet package sources are configured through Visual Studio, but they're stored in a per-user configuration file, found at c:\Users\$USER\AppData\Roaming\NuGet\NuGet.config. The entry for the TeamCity package source needs to be added to the config file of the build agent user that's running your builds. On your lo...
TeamCity
14,548,324
50
I'm having a problem on my TeamCity CI build server where during compilation I get the following error: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2342, 9): error MSB3086: Task could not find "AL.exe" using the SdkToolsPath "" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Micro...
As you have install the latest SDK (I'm assuming that's v7.1) Go to "Microsoft Windows SDK v7.1" from the Start menu Select "Windows SDK 7.1 Command Prompt" and enter cd Setup WindowsSdkVer -version:v7.1 This will tell msbuild to use that version of the tools without needing to do any scary registry editing.
TeamCity
2,986,440
49
I'm trying to deploy one of the web projects in my solution to a server. I am using msbuild on TeamCity like so: msbuild MySolution.sln /t:WebSite:Rebuild /p:DeployOnBuild=True /p:PublishProfile=Prod ... However, when I run it, msbuild still tries to build my WebService project, even though my WebSite project does not...
I blogged about this at http://sedodream.com/2013/03/06/HowToPublishOneWebProjectFromASolution.aspx a few months back. I've copied the details here as well, see below. Today on twitter @nunofcosta asked me roughly the question “How do I publish one web project from a solution that contains many?” The issue that he is ...
TeamCity
16,891,530
48
I want to copy a directory(abc) from domain1/user1 to domain2/user1. any idea how to do this. e.g robocopy robocopy \\server1\G$\testdir\%3 \\server2\g$\uploads and both are on different domains
Robocopy will use the standard windows authentication mechanism. So you probably need to connect to the servers using the appropriate credentials before you issue the robocopy command. You can use net use to do this and you could put that in a batch script. Note that Windows doesn't like you to connect to the same serv...
TeamCity
10,346,891
47
I have a VS solution and as part of a TeamCity Build, we restore packages from both a private NuGet feed (myget) and the public feed (nuget.org). Most packages restore fine, but it hangs on the ones below for WebApi and Mono.Security. This is all working locally in Visual Studio. [restore] NuGet command: C:\TeamCity\bu...
Try using https://www.nuget.org/api/v2instead of https://api.nuget.org/v3/index.json per the nuget docs: https://docs.nuget.org/consume/Command-Line-Reference.
TeamCity
32,360,518
45
Does anyone know where I can find a good tutorial to walk me through how to setup TeamCity CI server? I am new to unit testing and the agile philosophy of development so I could use some help getting my feet wet. I'm working with Asp.NET code using NUnit for my unit tests and would prefer a windows environment for the ...
The folks at DimeCasts.net have a nice TeamCity tutorial.
TeamCity
361,386
44
I'm using teamcity 8.x.x version.I configured my Teamcity for continuous deployment. I'm need a feature branching deployment. I see this document "http://confluence.jetbrains.com/display/TCD8/Working+with+Feature+Branches". I'm trying this document implementing on my Teamcity. I have a problem. My deployment config use...
I believe what you need is another variable. Try using %vcsroot.branch%. There is also %teamcity.build.branch%, but that one will contain "<default>" on the default branch. If you want more flexibility to choose exactly which part of the branch name gets selected, you can follow the instructions on this page: http://c...
TeamCity
20,514,112
43
We do have hundreds of failed builds in TeamCity (number is especially high because of old retry on fail settings) and now it's a pain to browse history. I want to clean up only old failed builds, is there anyway to do that in TeamCity? Normal clean-up policy only allows X days before the last successful build sort of...
In more recent versions of TeamCity you can now: Click on the build you want to remove. From the Build Actions menu select Remove... Put in an optional comment and click the Remove button to remove that build.
TeamCity
2,947,910
42
How-To Integrate IIS 7 Web Deploy with MSBuild (TeamCity) ?
Troy Hunt has an excellent 5-part blog series that goes over this topic in detail. He has effectively compiled all of the other resources out there and turned them into a tutorial. It's the clearest (and believe it or not, the most concise) way to do what you want.
TeamCity
2,847,575
41
I have some XML that looks something like this: <?xml version="1.0" encoding="utf-8"?> <XmlConfig instancetype="XmlConfig, Processing, Version=1.0.0.0, Culture=neutral"> <item> <key>IsTestEnvironment</key> <value>True</value> <encrypted>False</encrypted> </item> <item> <key>HlrFtpPutDir</key> ...
I just blogged about this (http://sedodream.com/2011/12/29/UpdatingXMLFilesWithMSBuild.aspx) but I'll paste the info here for you as well. Today I just saw a question posted on StackOverflow asking how to update an XML file using MSBuild during a CI build executed from Team City. There is not correct single answer, the...
TeamCity
8,658,972
41
I am trying to set up a TeamCity build process that runs a custom command line script. The script uses a variable so it needs a percent sign (e.g. %x). But TeamCity uses percent signs for its properties (e.g. %build.number%), so the percent sign in the script gets removed when it runs. If the script contains this: fo...
If you want to pass % to TeamCity, you should escape it with another %, i.e. for % it must be %%`. But the Windows command line considers % as an escape character, so you should escape it again adding another % before each %, i.e. for %% you should pass %%%% Flow is: %%%% in cmd -> %% in TeamCity -> % actual sign. tl;...
TeamCity
4,389,946
41
Our buildserver (TeamCity, much recommended), runs our a whole bunch of testsuites on our finished c++ program. Once in a whole, a test causes our program to crash, often bringing up a VisualStudio dialog offering me to JustInTime debug the crash. The dialog stops the buildserver from progressing. Instead of the build...
This MSDN article explains how to disable Just-In-Time debugging on a Windows server. I've included the relevant portion of the article below: After Visual Studio is installed on a server, the default behavior when an unhandled exception occurs is to show an Exception dialog that requires user intervention to eit...
TeamCity
1,893,567
40
Hello I have build server with TeamCity. My project is Sitecore Web Application. I am using TDS (HedgehogDevelopment). I have setup build settings in TeamCity with MS build and it looks like working when TDS project is disabled in build configuration manager. But then it enebled I am getting net error C:\Program Fil...
TransformXML comes as part of the ASP.NET Web Publishing tools. As such they usually come with a Visual Studio installation on your build server and require more than just the Shell version of Visual Studio. Installing Visual Studio Express Web Edition might also do the trick. You could try installing the Web-Deploy pa...
TeamCity
16,646,698
40
We use TeamCity as our CI server, and I've just started seeing "TestFixtureSetUp Failed" in the test failure window. Any idea how I go about debugging this problem? The tests run fine on my workstation (R# test runner in VS2008).
It is a bit of a flaw in the implementation of TestFixtureSetUp (and TestFixtureTearDown) that any exceptions are not well reported. I wrote the first implementation of them and I never got it to work the way it was supposed to. At the time the concepts in the NUnit code were tightly coupled to the idea that actions we...
TeamCity
1,411,676
39
I'm trying to run a custom command in my MSBuild file; it basically runs 'git log -10' and stores that commit info into a text file. The problem is, when I try to run the build, it errors saying "fatal: Not a git repository". So I checked TeamCity's work directory for my project, and there is no .git directory! Why do...
I changed the VCS checkout mode from server to "automatically on agent" and it works now! Thanks to the answer for this question: Using git commands in a TeamCity Build Step.
TeamCity
17,555,931
39
How can I configure TeamCity to build from SVN trunk and also from different branches and/or tags ? Our idea is to have multiple builds from the same project, this way we can have the current version that is in production (with the ability to make deploys and fixes over that "release tag") and at the same time have the...
First, ensure your VCS root is the root of your SVN repository in your administration panel, instead of being pointed to the trunk directory. Then, for each build configuration, edit the checkout rules in your VCS Configuration. Add the checkout rule you desire. For example, for your 'trunk' build configuraton, you wou...
TeamCity
6,874,796
36
Coming "from" TFS and using TeamCity in a customer project.... ...is there a way to install multiple agent instances on one computer? I could easily do that with TFS. The reason is that we have build scripts that are linear in execution for some (large) part and take a significant amount of time. Basically with a a mod...
Yes it is possible (I also have 2 agents installed on one machine) see TeamCity docs: Several agents can be installed on a single machine. They function as separate agents and TeamCity works with them as different agents, not utilizing the fact that they share the same machine. After installing one agent you can insta...
TeamCity
4,333,989
36
Is it possible, without disabling all other connected agents, to force TeamCity to build on a specific agents machine?
Under Build Configuration Settings go to Agent Requirements and set an Explicit Requirement for the specific agent name: Parameter Name: system.agent.name Condition: equals Value: YOUR_SPECIFIC_AGENT_NAME
TeamCity
1,600,778
36
I am trying to compile a Nativescript application as part of our Teamcity deployment strategy. When I run NPM install, I get a ENOENT error trying to find files, as shown below: npm WARN tar ENOENT: no such file or directory, open '/home/my_user/BuildAgent/work/my_application/node_modules/.staging/lodash-7722a2ea/fp/...
Make sure that log output is the end of it. In my case it was: npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -2 npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/bodymovin/lottie-api.git npm ERR! enoent npm ERR! enoent npm ERR! eno...
TeamCity
59,343,549
35
I recently started using NuGet to manage external packages. For now I have only needed it for NLog. Everything works fine when I Build the project in VS 2012. However, I am trying out TeamCity as a CI server (I'm fairly new to CI) and it is giving me the following error: [Csc] SomeNamespace\SomeClass.cs(10, 7): error ...
The enable package restore feature built into NuGet allows you to very easily set up the pre-build part of the workflow. To do so, right-click the solution node in Visual Studio’s Solution Explorer, and click the Enable NuGet Package Restore option. Note that you need to have the NuGet Visual Studio Extension installed...
TeamCity
14,438,650
35
We are migrating to .NET 4 and very interested in implementing new Design By Contract capabilities. As we know Code Contract engine requires installation of Code Contract addin and VS Ultimate or Premium (for static checking). Here is my questions: Can I use code contract rewriting without installing VS on CI b...
Can I use code contract rewriting without installing VS on CI build server (TeamCity)? Yes. Install CodeContracts on the build server. (If it refuses to install on a machine without Visual Studio, just copy the files listed below, and their dependencies, onto the build server.) Once installed, you'll find the CodeC...
TeamCity
3,569,108
35
Has anybody successfully configured Teamcity to monitor, extract, and build from GitHub? I can't seem to figure how where and how to configure the SSH keys for Teamcity. I have Teamcity running as a system service, under a system account. So where does Teamcity stash its SSH configuration? EDIT To get this to work, I...
Ok... I got this to start working on my Windows server. Here are the steps I took to configure TeamCity 4.5 Professional: Downloaded the JetBrains Git VCS Plugin Copied the downloaded zip file to .BuildServer\plugins In the Administration > Edit Build Configuration > Edit VCS Root configuration screen, I selected "G...
TeamCity
797,090
35
We are hosting our own nuget server through Teamcity. Is there any other way to add an icon to a .nuspec file other than specifying a web url (http://....)? Or is there a place in Teamcity that these icons could be hosted?
As of NuGet 5.3.0 you can now use <icon> to provide a relative path to your JPEG or PNG icon file located within your package. <package> <metadata> ... <icon>images\icon.png</icon> ... </metadata> <files> ... <file src="..\icon.png" target="images\" /> ... </files> </package> Source: ht...
TeamCity
38,329,201
34
TeamCity agent's show a list of "Environment Variables" under Agent Parameters but I cannot get them to update. I've added environment variables to my agent operating system, but cannot get them to refresh. I've tried restarting the agent and disabling and re-enabling the agent.
The TeamCity agent doesn't actually read environment variables from the OS. Instead it reads them from the buildAgent/conf/buildAgent.properties file on your agent machine. Down at the bottom of this file you'll see instructions on how to add new variables. Something like this: # Environment Variables #env.exampleEnvVa...
TeamCity
36,198,286
34