Got it

Install and Setup Jenkins | Huawei Cloud Jenkins Server setup on ECS Instance

103 0 0 0 0

Before refering to this jenkins installation, we must have a ECS provisioned in Huawei Cloud.

Prequisites before installing Jenkins :

1. Create VPC

  1. On the HUAWEI CLOUD management console, choose Products > Network > Virtual Private Cloud.

  2. Click Access Console.

  3. Click the Region area in the upper left corner to switch to CN AP-Singapore.

  4. Click Create VPC.

  5. Configure related parameters and click Create Now.

Note: To prevent VPC name conflicts, you are advised to set the VPC name to vpc-name, where name indicates the trainee's name, for example, vpc-wq.

               Step 6   Return to the console and verify that the creation is successful.

2. Create and Configure Security Groups

  1. On the HUAWEI CLOUD management console, choose Products > Network > Virtual Private Cloud.

  2. Choose Access Control > Security Groups. Then click Create Security Group.

  3. In the Create Security Group dialog box, enter a security group name and click OK

  4. Click the security group name. The page for configuring security group rules is displayed.

3. Buy ECSs

  1. On the HUAWEI CLOUD management console, choose Products > Compute > Elastic Cloud Server.

  2. Click Buy Now.

  3. Configure related parameters and click Next: Confirm.

  4. Confirm the configurations and click Next.

  5. Return to the console and wait until the ECS status changes to Running.

note: In my case i have used Linux Ununtu Distro for creating my ECS.

Step 1 — Installing Jenkins

wget -q -O - | sudo apt-key add -

sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'

sudo apt update

sudo apt install jenkins

Step 2 — Starting Jenkins

sudo systemctl start jenkins

sudo systemctl status jenkins

Step 3 — Opening the Firewall

sudo ufw allow 8080

sudo ufw allow OpenSSH

sudo ufw enable

sudo ufw status

Step 4 — 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:


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:


We’ll click the Install suggested plugins option, which will immediately begin the installation process.


When the installation is complete, you’ll be prompted to set up the first administrative user. It’s possible to skip this step and continue as admin using the initial password we used above, but we’ll take a moment to create the user.


Enter the name and password for your 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:


After confirming the appropriate information, click Save and Finish. You’ll receive a confirmation page confirming that “Jenkins is Ready!”:


Click Start using Jenkins to visit the main Jenkins dashboard:


Hope this jenkins server setup on Huawei Cloud ECS instance help. Note: If you have any query or doubt regarding the jenkins installation and server setup feel free to message me or drop a comment here. Happy to help!!!

  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.