How can I auto increment the C# assembly version via our CI platform (Hudson)?

Here’s what I did, for stamping the AssemblyFileVersion attribute. Removed the AssemblyFileVersion from AssemblyInfo.cs Add a new, empty, file called AssemblyFileInfo.cs to the project. Install the MSBuild community tasks toolset on the hudson build machine or as a NuGet dependency in your project. Edit the project (csproj) file , it’s just an msbuild file, and … Read more

Jenkins scripted pipeline or declarative pipeline

When Jenkins Pipeline was first created, Groovy was selected as the foundation. Jenkins has long shipped with an embedded Groovy engine to provide advanced scripting capabilities for admins and users alike. Additionally, the implementors of Jenkins Pipeline found Groovy to be a solid foundation upon which to build what is now referred to as the … Read more

Setting the version number for .NET Core projects – CSPROJ – not JSON projects

You can override any property from the command line by passing /p:PropertyName=Value as arguments to dotnet restore, dotnet build and dotnet pack. Currently, Version composition works as this: If Version is unset, use VersionPrefix (defaults to 1.0.0 if unset) and – if present – append VersionSuffix. All other versions are then defaulted to whatever Version … Read more

CruiseControl [.Net] vs TeamCity for continuous integration?

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 … Read more

Bamboo Vs. Hudson(a.k.a. Jenkins) vs Any other CI systems [closed]

Disclaimer: I work on Bamboo and therefore I am not going to comment on features of other CI products since my experience with them is limited. To answer your specific requirements: Handle multiple languages Bamboo has out of the box support for multiple languages. Customers use it with Java, .Net, PHP, JavaScript etc. That being … Read more

Docker: Using –password via the CLI is insecure. Use –password-stdin

According to docker documentation: To run the docker login command non-interactively, you can set the –password-stdin flag to provide a password through STDIN. Using STDIN prevents the password from ending up in the shell’s history, or log-files. The following examples read a password from a file, and passes it to the docker login command using … Read more

How to select different app.config for several build configurations

Use SlowCheetah plugin. For more options and details of how to use SlowCheetah keep reading. As you have already noticed, there is no default and easy way to use different config files for a Library type (.dll) project. The reason is that the current thinking is: “You don’t need to”! Framework developers reckon you need … Read more

Travis.yml ./gradlew : Permission denied

It depends by the exec-permission to your unix gradlew script. It can be fixed using the command: git update-index –chmod=+x gradlew A little desciption to understand the problem. First of all you can check your permissions using: git ls-tree HEAD You will see: 100644 blob xxxxxxxxxxx gradlew As you can see the file has 644 … Read more