Getting Started
(Optional) Modifying Security Group Rules
- This solution uses port 50000 to communicate with the Jenkins master node. By default, the VPC subnet created in this solution allows access from port 50000. Configure an IP address whitelist by referring to Modifying a Security Group Rule.
A security group is a collection of access control rules for cloud resources, such as cloud servers, containers, and databases, to control inbound and outbound traffic. Cloud resources associated with the same security group have the same security requirements and are mutually trusted within a VPC.
You can modify the security group policy, for example, by adding, modifying, or deleting a TCP port, as follows:
- Adding a security group rule: Add an inbound rule and enable a TCP port if needed.
- Modifying a security group rule: Inappropriate security group settings can be a serious security risk. You can modify security group rules to ensure the network security of your ECSs.
- Deleting a security group rule: If the source or destination IP address of an inbound or outbound security group rule changes, or a port does not need to be enabled, you can delete the security group rule.
Accessing Gerrit and Creating a Code Repository
- On the Outputs tab of the stack, copy the Gerrit access address.
Figure 1 Gerrit access address
- Paste the Gerrit access address to the address bar of a browser and click Sign in.
Figure 2 Accessing Gerrit
- Click Sign in with a Launchpad ID.
Figure 3 Signing in to Gerrit (1)
- On the Ubuntu One page, enter an email address and password to log in. (If you do not have an account, click Log in or Create account in the upper right corner to create an account.)
Figure 4 Signing in to Gerrit (2)
- On the displayed page, click Yes, log me in.
Figure 5 Signing in to Gerrit (3)
- Choose BROWSE > Repositories > CREATE NEW, specify Repository name and Default Branch, and click CREATE.
Figure 6 Creating a code repository
Accessing Jenkins and Configuring Plugins
- On the Resources tab of the stack, click the created Jenkins server.
Figure 7 Accessing the Jenkins server
- Click Remote Login. In Other Login Modes area, click Log In. For more login modes, see ECS Help Center.
Figure 8 Logging in to the Jenkins server
- Run cat /app/jenkins_home/secrets/initialAdminPassword to obtain the login password of user admin and copy the password.
Figure 9 Obtaining the password of user admin for logging in to the Jenkins server
- On the Outputs tab of the stack, copy the Jenkins access address.
Figure 10 Jenkins access address
- Paste the Jenkins access address into the address bar of a browser, enter the password obtained in 3, and click Continue.
Figure 11 Logging in to Jenkins
- Install plugins by selecting, for example, Install suggested plugins.
Figure 12 Customize Jenkins
Figure 13 Installing plugins
- Wait until the plugins are installed. Then create an admin user or click Skip and continue as admin. In this example, we click Skip and continue as admin.
Figure 14 Continue as an admin
- On the Instance Configuration page, configure the Jenkins URL and click Save and Finish.
Figure 15 Configuring the Jenkins URL
- Wait until the Jenkins setup is complete and click Start using Jenkins.
Figure 16 Jenkins setup completed
Figure 17 Accessing Jenkins
- Configure the HuaweiCloud ECS plugin to automatically create Huawei Cloud ECSs as the slave nodes of the Jenkins cluster.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot