ASP.Net Web Application Continuous Integration (CI) using Jenkins automation server: Starting & setting up Jenkins
In this blog post, we will see what all steps are involved in getting Jenkins up & running for building ASP.NET Web Application.
Note: You are currently on Part II of this series, do refer below parts for more details.
Part I: Basic Setup, Installation & Configuration
Part III: Creating & Adding SSH key to Bitbucket
A. Start Tomcat Server
Open Command Prompt & navigate to Apache Tomcat “bin” directory & execute startup.bat.
When Tomcat Server has started, you can access its home page at http://localhost:8080
Note: To avoid warning “there was insufficient free space available after evicting expired cache entries – consider increasing the maximum size of the cache”, modify context.xml (“I:\Jenkins\apache-tomcat-9.0.17\conf\context.xml”) to add following block below before </Context>
<Resources cachingAllowed="true" cacheMaxSize="100000" />
B. Access & setting up Jenkins
I. Access Jenkins at http://localhost:8080/jenkins/
Copy the password from location that is shown on your screen and paste it in “Administrator password” textbox. Click “Continue”, it will take you to “Customize Jenkins” page.
II. Select “Install Suggested plugins”
III. Create First Admin User
Fill details & click “Save and Continue”.
IV. Instance Configuration
Click “Save and Finish” and that’s it Jenkins is ready to use.
C. Manage Jenkins
I. Access Jenkins at http://localhost:8080/jenkins/, login & go to Manage Jenkins page
II. Changing Jenkins Home directory (optional step – but I would recommend it)
a. Go to “Configure System”
b. You can see the current location of Jenkin’s Home directory
c. For changing Jenkins Home directory to your desired location, create a new system environment variable “JENKINS_HOME” & set it to your desired location for Jenkins Home directory
Shutdown Apache Tomcat Server
Close Command Prompt & start Apache Tomcat Server.
Access Jenkins & go to Manage Jenkins -> Configure System, you can view the updated Home directory.
III. Install MSBuild plugin & set Path to MSBuild
a. Go to Manage Jenkins -> Manage Plugins
b. Install MSBuild plugin
c. Set MSBuild Name & Path to MSBuild on Global Tool Configuration page
Go to Manage Jenkins -> Global Tool Configuration
Under MSBuild section, set MSBuild Name & Path to MSBuild
Previous: Basic Setup, Installation & Configuration
Next: Creating & Adding SSH key to Bitbucket
.NET Professional | Microsoft Certified Professional | DZone’s Most Valuable Blogger | Web Developer | Author | Blogger
Doctorate in Computer Science and Engineering
Microsoft Certified Professional (MCP) with over 12+ years of software industry experience including development, implementation & deployment of applications in the .NET framework
Experienced and skilled Agile Developer with a strong record of excellent teamwork, successful coding & project management. Specialises in problem identification and proposal of alternative solutions. Provided knowledge and individual mentoring to team members as needed
Among top 3% overall in terms of contribution on Stack Overflow (~2.3 million people reached my posts). Part of the top 1% Stack Overflow answerers in ASP.NET technology.
DZone’s Most Valuable Blogger (MVB)
Created and actively maintain the TechCartNow.com tech blog while also editing, writing, and researching topics for publication.
Excellent skills in Application Development using C#/Vb.Net, .NET Framework, ASP.NET, MVC, ADO.NET, WCF, WPF, Web API, SQL Server, jQuery, Angular, React, BackboneJS
3 Responses
[…] 2. Starting & setting up Jenkins […]
[…] Part II: Starting & setting up Jenkins […]
[…] Part II: Starting & setting up Jenkins […]