ubuntu@ip-172-26-9-33:~/install_files$ wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -

OK

ubuntu@ip-172-26-9-33:~/install_files$

ubuntu@ip-172-26-9-33:~/install_files$ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

ubuntu@ip-172-26-9-33:~/install_files$

ubuntu@ip-172-26-9-33:~/install_files$ sudo apt install jenkins

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

daemon

The following NEW packages will be installed:

daemon jenkins

0 upgraded, 2 newly installed, 0 to remove and 222 not upgraded.

Need to get 71.9 MB of archives.

After this operation, 72.6 MB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Get:2 http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 daemon amd64 0.6.4-1build2 [96.3 kB]

Get:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.319.2 [71.8 MB]