How to Setup Jenkins CI/CD Server on Azure/AWS/GCP

To setup and install Jenkins on Ubuntu or CentOS Server onto any of the cloud platforms, the recommended way is to install from the Jenkins image available on any of the marketplaces. Self host your own CI /CD pipelines using Jenkins Server.

Getting Started

 

Once your Jenkins server has been deployed, the following links explain how to connect to a Linux VM:

 

 

Once connected and logged in, you’re ready to start configuring Jenkins

Setting up Jenkins

 

To set up your installation, visit Jenkins on its default port, 8080, using your server domain name or IP address: http://your_server_ip_or_domain:8080

You should receive the Unlock Jenkins screen, which displays the location of the initial password:

 

unlock-jenkins

 

In the terminal window, use the cat command to display the password:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Copy the 32-character alphanumeric password from the terminal and paste it into the Administrator password field, then click Continue.

 

The next screen presents the option of installing suggested plugins or selecting specific plugins:

 

install-jenkins-server

 

Either choose to install suggested plugins or select plugins to install

 

jenkins_plugin_install

 

When the installation is complete, you’re now ready to setup the first Admin user.

 

jenkins_create_admin_user

 

You’ll receive an Instance Configuration page that will ask you to confirm the preferred URL for your Jenkins instance. Confirm either the domain name for your server or your server’s IP address and press save and finish:

 

jenkins-instance-configuration

 

You’ll receive confirmation that Jenkins is ready and you can now click on Start Using Jenkins to login

 

setting-up-jenkins-server

And you’re now ready to start using Jenkins and building your first project / build

 

Jenkins-Web-Portal

Documentation / Support

 

Documentation on using Jenkins can be found on their website:

 

https://www.jenkins.io/doc/

 

Community support for Jenkins can be found on the following:

 

https://www.jenkins.io/participate/

 

If you have any problems getting Jenkins server installed in your environment, please contact us and we will get you up and running

Jenkins Firewall Ports

 

Jenkins uses the following firewall ports:

 

TCP 8080

TCP 8443

 

To setup AWS firewall rules refer to – AWS Security Groups

To setup Azure firewall rules refer to – Azure Network Security Groups

To setup Google GCP firewall rules refer to – Creating GCP Firewalls

Disclaimer: Jenkins® is a registered trademark of LF Charities Inc and is licensed under MIT License License. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.

Avatar for Andrew Fitzgerald
Andrew Fitzgerald

Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud.

5 1 vote
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x