OVERVIEW
Jenkins is an open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery.
GET STARTED
To verify the installation, follow the below instructions
Step 1. Connect to SSH:
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the navigation pane, choose Instances.
Select the instance and choose Connect.
Choose SSH Client
Copy the SSH command and paste it into the terminal.
ssh ec2-user@publicIP -i [Path of key pair file]
If it shows an access denied message run the following command, then run the above command again to connect via ssh.
chmod 400 [Path of key pair file]
Once launched in the Amazon EC2 Service, please connect to the instance via an SSH client using the ec2-user with the key pair associated at launch. Once connected as the ec2-user user, you will be able to sudo to the root user.
Access and Security
Please update the security group of the target instance to allow the below ports and protocols for access and connectivity.
To add a rule to a security group for inbound SSH traffic over IPv4:
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/
From the top navigation bar, select a Region for the security group. Security groups are specific to a Region, so you should select the same Region in which you created your instance.
In the navigation pane, choose Instances.
Select your instance and, in the bottom half of the screen, choose the Security tab. Security groups list the security groups that are associated with the instance. Inbound rules display a list of the inbound rules that are in effect for the instance.
For the security group to which you'll add the new rule, choose the security group ID link to open the security group.
On the Inbound Rules tab, choose Edit inbound rules.
On the Edit inbound rules page, do the following:
Choose Add rule.
For Type, choose SSH, HTTP, Custom TCP
In Custom TCP add in the Port range - 8080
For Source, choose Custom and then choose in the CIDR block 0.0.0.0/0
Choose Save rules.
Step 2. Verify the installation
Follow the steps to verify the installation and Login
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
In the navigation pane, choose Instances and select your instance.
The following information is available on the Networking tab: Public IPv4 address
Copy its public IP.
Paste the public IP into a new browser tab (do not hit enter yet)
Append:8080 to the end of the public IP. http://<Public id>:8080
Hit Enter.
Jenkins default password
Upon installation of Jenkins, the default username is ‘admin’, while the default password gets filled by itself automatically. To change your password in Jenkins, log in to Jenkins master and enter your current password. Now select admin, click on configure, find ‘password’ and click on it, now you can enter your new password.
8. Get your Initial Admin Password through run this command after ssh login:-
9. Go to Browser and type http://your_ip_adress:8080 , you will see the page shown below
and Enter the master code and click on continue.
10. Click on install suggested plugins.
11. We’ll click the Install suggested plugins option, which will immediately begin the installation process.
12. 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 from above, but you’ll take a moment to create the user.
13. After entering the name and password for your user. You’ll receive a confirmation page confirming that “Jenkins is Ready!”:
14. Click Start using Jenkins to visit the main Jenkins dashboard:
To monitor and assess application functions:-
Navigate to your Amazon EC2 console and verify that you're in the correct region.
Choose Instances and select your launched instance.
Select the server to display your metadata page and choose the Status checks tab at the bottom of the page to review if your status checks passed or failed.
For information about how to use the application, please visit: https://www.javatpoint.com/jenkins
For detailed information about managing and requesting increased service please visit: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html
ความคิดเห็น