CentOS 7
Sponsored Link

Install Jenkins2019/06/25

 
Install CD (Continuous Delivery) System, Jenkins.
[1]
[2] Install and start Jenkins.
# get Jenkins official repository

[root@dlp ~]#
cd /etc/yum.repos.d

[root@dlp yum.repos.d]#
curl -O https://pkg.jenkins.io/redhat-stable/jenkins.repo
# get GPG key and install Jenkins

[root@dlp yum.repos.d]#
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

[root@dlp yum.repos.d]#
yum -y install jenkins
[root@dlp yum.repos.d]#
systemctl start jenkins

[root@dlp yum.repos.d]#
systemctl enable jenkins

jenkins.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig jenkins on
[3] If Firewalld is running, allow service ports.
[root@dlp ~]#
firewall-cmd --add-port=8080/tcp --permanent

success
[root@dlp ~]#
firewall-cmd --reload

success
[4] Access to [https://(server's hostname or IP address):8080/] with Web browser from localhost or any Client Host, then, initial admin password is required to enter initial setup. Make sure initial admin password that is saved in [/var/lib/jenkins/secrets/initialAdminPassword] and input it to enter setup.
[5] This is Jenkins initial setup. Select to install suggested plugins or to install from your own selected plugins. (proceed with [suggested plugins] on this example)
[6] The initial setup tasks run.
[7] Setting administrative user and password is required. Set any username and password you like.
[8] If you'd like to change Jenkins URL, change it on here. (proceed with default on this example)
[9] initial setup finished. Click [Start using Jenkins] button to move Jenkins main page.
[10] This is the Jenkins index page.
[11] For next access to Jenkins, Login form is shown like follows, it's possible to authenticate with users you added in jenkins.
Matched Content