ASP.Net Web Application Continuous Integration (CI) using Jenkins automation server: Basic Setup, Installation & Configuration

Recently, I get a chance to work on setting up Continuous Integration (CI) for ASP.Net projects using Jenkins (open source automation server).  My projects are using git version control system & git repositories are hosted on Bitbucket. I have previously worked on Visual Studio Team Services & Team City for Continuous Integration (CI). In this blog post, I will share my experience of setting up CI using Jenkins. 

In this blog post, we will see what all basic setups, installations & configurations we need to do before getting Jenkins up & running for building ASP.NET Web Application.

Note: You are currently on Part I of this series, do refer below parts for more details.

Part II: Starting & setting up Jenkins

Part III: Creating & Adding SSH key to Bitbucket

Part IV: Creating Jobs In Jenkins: Getting source code from Bitbucket hosted git repository, polling the SCM to check whether changes were made, restore Nuget packages, build project using MSBuild, publish and archive the build

A. Download & Install

I. Java SE Runtime Environment (Java SE Runtime Environment 8u201)

Java SE Runtime Environment

II. Git Client (2.21.0)

Git Client

III. Build Tools for Visual Studio (Visual Studio 2019)

Build Tools for Visual Studio 2019

Select -> Web Development Build Tools 

MSBuild Web Development Tools

IV. Apache Tomcat®
Download & Unzip (to any location of your choice) – My location: “I:\Jenkins\apache-tomcat-9.0.17 (9.0.17)

Apache Tomcat

V. Jenkins
Download & Paste to Apache Tomcat®’s “webapps” folder – My “webapps” folder location: “I:\Jenkins\apache-tomcat-9.0.17\webapps” (Jenkins 2.164.1)

Jenkins Generic Java Package

VI. NuGet
Download & Paste to any location of your choice – My location: “I:\Jenkins\tools (v4.9.4)


B. Add system environment variables


JRE Home

C. Edit “Path” system environment variables

Add paths for: git.exe & nuget.exe

Edit Path environment variables - add Git and Nuget path

Next: Starting & setting up Jenkins

You may also like...

4 Responses

Leave a Reply

Your email address will not be published. Required fields are marked *