Jenkins 简介
Jenkins是一个开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能。
Java 安装
yum -y install java-1.8.0-openjdk-devel
Jenkins 安装
为了使用 Jenkins 仓库,我们要执行以下命令:
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum -y install jenkins
启动 Jenkins 并设置为开机启动:
systemctl start jenkins.service
chkconfig jenkins on
Jenkins 默认运行在 8080端口。
稍等片刻,打开http://<您的 CVM IP 地址>:8080测试访问。
管理员密码
登入 Jenkins 需要输入管理员密码,按照提示,我们使用以下命令查看初始密码:
cat /var/lib/jenkins/secrets/initialAdminPassword
复制密码,填入,进入 Jenkins。
定制 Jenkins
我们选择默认的install suggested plugins来安装插件。
创建用户
请填入相应信息创建用户,然后即可登入 Jenkins 的世界。
[root@VM_49_106_centos ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@VM_49_106_centos ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 50G 3.1G 44G 7% /
devtmpfs 487M 0 487M 0% /dev
tmpfs 497M 24K 497M 1% /dev/shm
tmpfs 497M 288K 497M 1% /run
tmpfs 497M 0 497M 0% /sys/fs/cgroup
tmpfs 100M 0 100M 0% /run/user/0
[root@VM_49_106_centos ~]# uname -a
Linux VM_49_106_centos 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@VM_49_106_centos ~]#
[root@VM_49_106_centos ~]# yum -y install java-1.8.0-openjdk-devel
Loaded plugins: fastestmirror,langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package java-1.8.0-openjdk-devel.x86_64 1:1.8.0.171-7.b10.el7 will be installed
--> Processing Dependency: java-1.8.0-openjdk(x86-64) = 1:1.8.0.171-7.b10.el7 for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: chkconfig >= 1.7 for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: chkconfig >= 1.7 for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libawt_xawt.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libawt_xawt.so()(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libawt.so()(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64
--> Running transaction check
---> Package chkconfig.x86_64 0:1.3.61-5.el7 will be updated
--> Processing Dependency: chkconfig = 1.3.61-5.el7 for package: ntsysv-1.3.61-5.el7.x86_64
---> Package chkconfig.x86_64 0:1.7.4-1.el7 will be an update
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.171-7.b10.el7 will be installed
--> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: fontconfig(x86-64) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: libXcomposite.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.171-7.b10.el7 will be installed
--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: nss-softokn(x86-64) >= 3.34.0 for package: 1:java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: nss(x86-64) >= 3.34.0 for package: 1:java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: copy-jdk-configs >= 2.2 for package: 1:java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x86_64
--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x86_64
---> Package libX11.x86_64 0:1.6.5-1.el7 will be installed
--> Processing Dependency: libX11-common >= 1.6.5-1.el7 for package: libX11-1.6.5-1.el7.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.5-1.el7.x86_64
--> Running transaction check
---> Package copy-jdk-configs.noarch 0:3.3-10.el7_5 will be installed
---> Package fontconfig.x86_64 0:2.10.95-11.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.10.95-11.el7.x86_64
--> Processing Dependency: font(:lang=en) for package: fontconfig-2.10.95-11.el7.x86_64
---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed
--> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch
--> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-11.el7.noarch
---> Package libX11-common.noarch 0:1.6.5-1.el7 will be installed
---> Package libXcomposite.x86_64 0:0.4.4-4.1.el7 will be installed
---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed
---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
---> Package libXrender.x86_64 0:0.9.10-1.el7 will be installed
---> Package libXtst.x86_64 0:1.2.3-1.el7 will be installed
---> Package libpng.x86_64 2:1.5.13-7.el7_2 will be installed
---> Package libxcb.x86_64 0:1.12-1.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.12-1.el7.x86_64
---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed
---> Package nss.x86_64 0:3.28.4-1.2.el7_3 will be updated
--> Processing Dependency: nss = 3.28.4-1.2.el7_3 for package: nss-sysinit-3.28.4-1.2.el7_3.x86_64
--> Processing Dependency: nss(x86-64) = 3.28.4-1.2.el7_3 for package: nss-tools-3.28.4-1.2.el7_3.x86_64
---> Package nss.x86_64 0:3.34.0-4.el7 will be an update
--> Processing Dependency: nss-util >= 3.34.0-1 for package: nss-3.34.0-4.el7.x86_64
--> Processing Dependency: nspr >= 4.17.0 for package: nss-3.34.0-4.el7.x86_64
--> Processing Dependency: nss-pem(x86-64) for package: nss-3.34.0-4.el7.x86_64
--> Processing Dependency: libnssutil3.so(NSSUTIL_3.31)(64bit) for package: nss-3.34.0-4.el7.x86_64
---> Package nss-softokn.x86_64 0:3.16.2.3-14.2.el7_2 will be updated
---> Package nss-softokn.x86_64 0:3.34.0-2.el7 will be an update
--> Processing Dependency: nss-softokn-freebl(x86-64) >= 3.34.0-2.el7 for package: nss-softokn-3.34.0-2.el7.x86_64
---> Package ntsysv.x86_64 0:1.3.61-5.el7 will be updated
---> Package ntsysv.x86_64 0:1.7.4-1.el7 will be an update
---> Package tzdata-java.noarch 0:2018e-3.el7 will be installed
---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Running transaction check
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package libICE.x86_64 0:1.0.9-9.el7 will be installed
---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
---> Package lyx-fonts.noarch 0:2.2.3-1.el7 will be installed
---> Package nspr.x86_64 0:4.13.1-1.0.el7_3 will be updated
---> Package nspr.x86_64 0:4.17.0-1.el7 will be an update
---> Package nss-pem.x86_64 0:1.0.3-4.el7 will be installed
---> Package nss-softokn-freebl.i686 0:3.16.2.3-14.2.el7_2 will be updated
---> Package nss-softokn-freebl.x86_64 0:3.16.2.3-14.2.el7_2 will be updated
---> Package nss-softokn-freebl.i686 0:3.34.0-2.el7 will be an update
---> Package nss-softokn-freebl.x86_64 0:3.34.0-2.el7 will be an update
---> Package nss-sysinit.x86_64 0:3.28.4-1.2.el7_3 will be updated
---> Package nss-sysinit.x86_64 0:3.34.0-4.el7 will be an update
---> Package nss-tools.x86_64 0:3.28.4-1.2.el7_3 will be updated
---> Package nss-tools.x86_64 0:3.34.0-4.el7 will be an update
---> Package nss-util.x86_64 0:3.28.4-1.0.el7_3 will be updated
---> Package nss-util.x86_64 0:3.34.0-2.el7 will be an update
---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed
--> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch
---> Package ttmkfdir.x86_64 0:3.0.9-42.el7 will be installed
---> Package xorg-x11-font-utils.x86_64 1:7.5-20.el7 will be installed
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-20.el7.x86_64
--> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-20.el7.x86_64
--> Running transaction check
---> Package libXfont.x86_64 0:1.5.2-1.el7 will be installed
---> Package libfontenc.x86_64 0:1.1.3-3.el7 will be installed
---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
Installing:
java-1.8.0-openjdk-devel x86_64 1:1.8.0.171-7.b10.el7 updates 9.8 M
Installing for dependencies:
copy-jdk-configs noarch 3.3-10.el7_5 updates 21 k
fontconfig x86_64 2.10.95-11.el7 os 229 k
fontpackages-filesystem noarch 1.44-8.el7 os 9.9 k
giflib x86_64 4.1.6-9.el7 os 40 k
java-1.8.0-openjdk x86_64 1:1.8.0.171-7.b10.el7 updates 246 k
java-1.8.0-openjdk-headless x86_64 1:1.8.0.171-7.b10.el7 updates 32 M
javapackages-tools noarch 3.4.1-11.el7 os 73 k
libICE x86_64 1.0.9-9.el7 os 66 k
libSM x86_64 1.2.2-2.el7 os 39 k
libX11 x86_64 1.6.5-1.el7 os 606 k
libX11-common noarch 1.6.5-1.el7 os 164 k
libXau x86_64 1.0.8-2.1.el7 os 29 k
libXcomposite x86_64 0.4.4-4.1.el7 os 22 k
libXext x86_64 1.3.3-3.el7 os 39 k
libXfont x86_64 1.5.2-1.el7 os 152 k
libXi x86_64 1.7.9-1.el7 os 40 k
libXrender x86_64 0.9.10-1.el7 os 26 k
libXtst x86_64 1.2.3-1.el7 os 20 k
libfontenc x86_64 1.1.3-3.el7 os 31 k
libpng x86_64 2:1.5.13-7.el7_2 os 213 k
libxcb x86_64 1.12-1.el7 os 211 k
libxslt x86_64 1.1.28-5.el7 os 242 k
lksctp-tools x86_64 1.0.17-2.el7 os 88 k
lyx-fonts noarch 2.2.3-1.el7 epel 159 k
nss-pem x86_64 1.0.3-4.el7 os 73 k
python-javapackages noarch 3.4.1-11.el7 os 31 k
python-lxml x86_64 3.2.1-4.el7 os 758 k
ttmkfdir x86_64 3.0.9-42.el7 os 48 k
tzdata-java noarch 2018e-3.el7 updates 185 k
xorg-x11-font-utils x86_64 1:7.5-20.el7 os 87 k
xorg-x11-fonts-Type1 noarch 7.5-9.el7 os 521 k
Updating for dependencies:
chkconfig x86_64 1.7.4-1.el7 os 181 k
nspr x86_64 4.17.0-1.el7 os 126 k
nss x86_64 3.34.0-4.el7 os 841 k
nss-softokn x86_64 3.34.0-2.el7 os 311 k
nss-softokn-freebl i686 3.34.0-2.el7 os 206 k
nss-softokn-freebl x86_64 3.34.0-2.el7 os 220 k
nss-sysinit x86_64 3.34.0-4.el7 os 61 k
nss-tools x86_64 3.34.0-4.el7 os 513 k
nss-util x86_64 3.34.0-2.el7 os 78 k
ntsysv x86_64 1.7.4-1.el7 os 38 k
Transaction Summary
Install 1 Package (+31 Dependent packages)
Upgrade ( 10 Dependent packages)
Total download size: 48 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/42): copy-jdk-configs-3.3-10.el7_5.noarch.rpm | 21 kB 00:00
(2/42): chkconfig-1.7.4-1.el7.x86_64.rpm | 181 kB 00:00
(3/42): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00
(4/42): fontconfig-2.10.95-11.el7.x86_64.rpm | 229 kB 00:00
(5/42): giflib-4.1.6-9.el7.x86_64.rpm | 40 kB 00:00
(6/42): java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64.rpm | 246 kB 00:00
(7/42): javapackages-tools-3.4.1-11.el7.noarch.rpm | 73 kB 00:00
(8/42): libICE-1.0.9-9.el7.x86_64.rpm | 66 kB 00:00
(9/42): libSM-1.2.2-2.el7.x86_64.rpm | 39 kB 00:00
(10/42): libX11-common-1.6.5-1.el7.noarch.rpm | 164 kB 00:00
(11/42): libXau-1.0.8-2.1.el7.x86_64.rpm | 29 kB 00:00
(12/42): libXcomposite-0.4.4-4.1.el7.x86_64.rpm | 22 kB 00:00
(13/42): libXext-1.3.3-3.el7.x86_64.rpm | 39 kB 00:00
(14/42): libX11-1.6.5-1.el7.x86_64.rpm | 606 kB 00:00
(15/42): libXi-1.7.9-1.el7.x86_64.rpm | 40 kB 00:00
(16/42): libXrender-0.9.10-1.el7.x86_64.rpm | 26 kB 00:00
(17/42): libXfont-1.5.2-1.el7.x86_64.rpm | 152 kB 00:00
(18/42): libXtst-1.2.3-1.el7.x86_64.rpm | 20 kB 00:00
(19/42): libfontenc-1.1.3-3.el7.x86_64.rpm | 31 kB 00:00
(20/42): libpng-1.5.13-7.el7_2.x86_64.rpm | 213 kB 00:00
(21/42): libxcb-1.12-1.el7.x86_64.rpm | 211 kB 00:00
(22/42): lksctp-tools-1.0.17-2.el7.x86_64.rpm | 88 kB 00:00
(23/42): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00
(24/42): nspr-4.17.0-1.el7.x86_64.rpm | 126 kB 00:00
(25/42): nss-pem-1.0.3-4.el7.x86_64.rpm | 73 kB 00:00
(26/42): lyx-fonts-2.2.3-1.el7.noarch.rpm | 159 kB 00:00
(27/42): nss-softokn-3.34.0-2.el7.x86_64.rpm | 311 kB 00:00
(28/42): nss-3.34.0-4.el7.x86_64.rpm | 841 kB 00:00
(29/42): nss-softokn-freebl-3.34.0-2.el7.i686.rpm | 206 kB 00:00
(30/42): nss-sysinit-3.34.0-4.el7.x86_64.rpm | 61 kB 00:00
(31/42): nss-softokn-freebl-3.34.0-2.el7.x86_64.rpm | 220 kB 00:00
(32/42): nss-util-3.34.0-2.el7.x86_64.rpm | 78 kB 00:00
(33/42): ntsysv-1.7.4-1.el7.x86_64.rpm | 38 kB 00:00
(34/42): python-javapackages-3.4.1-11.el7.noarch.rpm | 31 kB 00:00
(35/42): nss-tools-3.34.0-4.el7.x86_64.rpm | 513 kB 00:00
(36/42): ttmkfdir-3.0.9-42.el7.x86_64.rpm | 48 kB 00:00
(37/42): python-lxml-3.2.1-4.el7.x8664.rpm | 758 kB 00:02
(38/42): java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86 | 9.8 MB 00:03
(39/42): tzdata-java-2018e-3.el7.noarch.rpm | 185 kB 00:00
(40/42): xorg-x11-font-utils-7.5-20.el7.x86_64.rpm | 87 kB 00:00
(41/42): xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm | 521 kB 00:00
(42/42): java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x | 32 MB 00:04
Total 10 MB/s | 48 MB 00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : nspr-4.17.0-1.el7.x86_64 1/52
Updating : nss-util-3.34.0-2.el7.x86_64 2/52
Updating : chkconfig-1.7.4-1.el7.x86_64 3/52
Installing : libfontenc-1.1.3-3.el7.x86_64 4/52
Installing : libxslt-1.1.28-5.el7.x86_64 5/52
Installing : fontpackages-filesystem-1.44-8.el7.noarch 6/52
Installing : libICE-1.0.9-9.el7.x86_64 7/52
Installing : libSM-1.2.2-2.el7.x86_64 8/52
Installing : lyx-fonts-2.2.3-1.el7.noarch 9/52
Installing : fontconfig-2.10.95-11.el7.x86_64 10/52
Installing : python-lxml-3.2.1-4.el7.x86_64 11/52
Installing : python-javapackages-3.4.1-11.el7.noarch 12/52
Installing : javapackages-tools-3.4.1-11.el7.noarch 13/52
Installing : libXfont-1.5.2-1.el7.x86_64 14/52
Installing : 1:xorg-x11-font-utils-7.5-20.el7.x86_64 15/52
Updating : nss-softokn-freebl-3.34.0-2.el7.x86_64 16/52
Updating : nss-softokn-3.34.0-2.el7.x86_64 17/52
Installing : nss-pem-1.0.3-4.el7.x86_64 18/52
Updating : nss-3.34.0-4.el7.x86_64 19/52
Updating : nss-sysinit-3.34.0-4.el7.x86_64 20/52
Installing : tzdata-java-2018e-3.el7.noarch 21/52
Installing : libXau-1.0.8-2.1.el7.x86_64 22/52
Installing : libxcb-1.12-1.el7.x86_64 23/52
Installing : libX11-common-1.6.5-1.el7.noarch 24/52
Installing : libX11-1.6.5-1.el7.x86_64 25/52
Installing : libXext-1.3.3-3.el7.x86_64 26/52
Installing : libXi-1.7.9-1.el7.x86_64 27/52
Installing : libXtst-1.2.3-1.el7.x86_64 28/52
Installing : giflib-4.1.6-9.el7.x86_64 29/52
Installing : libXrender-0.9.10-1.el7.x86_64 30/52
Installing : libXcomposite-0.4.4-4.1.el7.x86_64 31/52
Installing : lksctp-tools-1.0.17-2.el7.x86_64 32/52
Installing : copy-jdk-configs-3.3-10.el7_5.noarch 33/52
Installing : 1:java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x86_64 34/52
Installing : ttmkfdir-3.0.9-42.el7.x86_64 35/52
Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch 36/52
Installing : 2:libpng-1.5.13-7.el7_2.x86_64 37/52
Installing : 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64 38/52
Installing : 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64 39/52
Updating : nss-tools-3.34.0-4.el7.x86_64 40/52
Updating : ntsysv-1.7.4-1.el7.x86_64 41/52
Updating : nss-softokn-freebl-3.34.0-2.el7.i686 42/52
Cleanup : nss-tools-3.28.4-1.2.el7_3.x86_64 43/52
Cleanup : nss-3.28.4-1.2.el7_3.x86_64 44/52
Cleanup : nss-sysinit-3.28.4-1.2.el7_3.x86_64 45/52
Cleanup : nss-softokn-3.16.2.3-14.2.el7_2.x86_64 46/52
Cleanup : nss-util-3.28.4-1.0.el7_3.x86_64 47/52
Cleanup : ntsysv-1.3.61-5.el7.x86_64 48/52
Cleanup : nss-softokn-freebl-3.16.2.3-14.2.el7_2 49/52
Cleanup : chkconfig-1.3.61-5.el7.x86_64 50/52
Cleanup : nspr-4.13.1-1.0.el7_3.x86_64 51/52
Cleanup : nss-softokn-freebl-3.16.2.3-14.2.el7_2 52/52
Verifying : libXext-1.3.3-3.el7.x86_64 1/52
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.171-7.b10.el7.x86_64 2/52
Verifying : libXi-1.7.9-1.el7.x86_64 3/52
Verifying : libICE-1.0.9-9.el7.x86_64 4/52
Verifying : giflib-4.1.6-9.el7.x86_64 5/52
Verifying : libX11-1.6.5-1.el7.x86_64 6/52
Verifying : libXrender-0.9.10-1.el7.x86_64 7/52
Verifying : 1:java-1.8.0-openjdk-devel-1.8.0.171-7.b10.el7.x86_64 8/52
Verifying : lyx-fonts-2.2.3-1.el7.noarch 9/52
Verifying : python-lxml-3.2.1-4.el7.x86_64 10/52
Verifying : nss-sysinit-3.34.0-4.el7.x86_64 11/52
Verifying : 2:libpng-1.5.13-7.el7_2.x86_64 12/52
Verifying : fontpackages-filesystem-1.44-8.el7.noarch 13/52
Verifying : ttmkfdir-3.0.9-42.el7.x86_64 14/52
Verifying : 1:java-1.8.0-openjdk-1.8.0.171-7.b10.el7.x86_64 15/52
Verifying : copy-jdk-configs-3.3-10.el7_5.noarch 16/52
Verifying : python-javapackages-3.4.1-11.el7.noarch 17/52
Verifying : libXcomposite-0.4.4-4.1.el7.x86_64 18/52
Verifying : nss-softokn-freebl-3.34.0-2.el7.x86_64 19/52
Verifying : libXtst-1.2.3-1.el7.x86_64 20/52
Verifying : nss-pem-1.0.3-4.el7.x86_64 21/52
Verifying : ntsysv-1.7.4-1.el7.x86_64 22/52
Verifying : lksctp-tools-1.0.17-2.el7.x86_64 23/52
Verifying : nspr-4.17.0-1.el7.x86_64 24/52
Verifying : nss-tools-3.34.0-4.el7.x86_64 25/52
Verifying : libxcb-1.12-1.el7.x86_64 26/52
Verifying : xorg-x11-fonts-Type1-7.5-9.el7.noarch 27/52
Verifying : nss-3.34.0-4.el7.x86_64 28/52
Verifying : libxslt-1.1.28-5.el7.x86_64 29/52
Verifying : nss-softokn-3.34.0-2.el7.x86_64 30/52
Verifying : libXfont-1.5.2-1.el7.x86_64 31/52
Verifying : javapackages-tools-3.4.1-11.el7.noarch 32/52
Verifying : libX11-common-1.6.5-1.el7.noarch 33/52
Verifying : nss-util-3.34.0-2.el7.x86_64 34/52
Verifying : nss-softokn-freebl-3.34.0-2.el7.i686 35/52
Verifying : libXau-1.0.8-2.1.el7.x86_64 36/52
Verifying : libSM-1.2.2-2.el7.x86_64 37/52
Verifying : fontconfig-2.10.95-11.el7.x86_64 38/52
Verifying : tzdata-java-2018e-3.el7.noarch 39/52
Verifying : chkconfig-1.7.4-1.el7.x86_64 40/52
Verifying : libfontenc-1.1.3-3.el7.x86_64 41/52
Verifying : 1:xorg-x11-font-utils-7.5-20.el7.x86_64 42/52
Verifying : nss-3.28.4-1.2.el7_3.x86_64 43/52
Verifying : nss-softokn-3.16.2.3-14.2.el7_2.x86_64 44/52
Verifying : nss-softokn-freebl-3.16.2.3-14.2.el7_2.x86_64 45/52
Verifying : nss-tools-3.28.4-1.2.el7_3.x86_64 46/52
Verifying : nss-util-3.28.4-1.0.el7_3.x86_64 47/52
Verifying : chkconfig-1.3.61-5.el7.x86_64 48/52
Verifying : nss-sysinit-3.28.4-1.2.el7_3.x86_64 49/52
Verifying : ntsysv-1.3.61-5.el7.x86_64 50/52
Verifying : nss-softokn-freebl-3.16.2.3-14.2.el7_2.i686 51/52
Verifying : nspr-4.13.1-1.0.el7_3.x86_64 52/52
Installed:
java-1.8.0-openjdk-devel.x86_64 1:1.8.0.171-7.b10.el7
Dependency Installed:
copy-jdk-configs.noarch 0:3.3-10.el7_5
fontconfig.x86_64 0:2.10.95-11.el7
fontpackages-filesystem.noarch 0:1.44-8.el7
giflib.x86_64 0:4.1.6-9.el7
java-1.8.0-openjdk.x86_64 1:1.8.0.171-7.b10.el7
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.171-7.b10.el7
javapackages-tools.noarch 0:3.4.1-11.el7
libICE.x86_64 0:1.0.9-9.el7
libSM.x86_64 0:1.2.2-2.el7
libX11.x86_64 0:1.6.5-1.el7
libX11-common.noarch 0:1.6.5-1.el7
libXau.x86_64 0:1.0.8-2.1.el7
libXcomposite.x86_64 0:0.4.4-4.1.el7
libXext.x86_64 0:1.3.3-3.el7
libXfont.x86_64 0:1.5.2-1.el7
libXi.x86_64 0:1.7.9-1.el7
libXrender.x86_64 0:0.9.10-1.el7
libXtst.x86_64 0:1.2.3-1.el7
libfontenc.x86_64 0:1.1.3-3.el7
libpng.x86_64 2:1.5.13-7.el7_2
libxcb.x86_64 0:1.12-1.el7
libxslt.x86_64 0:1.1.28-5.el7
lksctp-tools.x86_64 0:1.0.17-2.el7
lyx-fonts.noarch 0:2.2.3-1.el7
nss-pem.x86_64 0:1.0.3-4.el7
python-javapackages.noarch 0:3.4.1-11.el7
python-lxml.x86_64 0:3.2.1-4.el7
ttmkfdir.x86_64 0:3.0.9-42.el7
tzdata-java.noarch 0:2018e-3.el7
xorg-x11-font-utils.x86_64 1:7.5-20.el7
xorg-x11-fonts-Type1.noarch 0:7.5-9.el7
Dependency Updated:
chkconfig.x86_64 0:1.7.4-1.el7
nspr.x86_64 0:4.17.0-1.el7
nss.x86_64 0:3.34.0-4.el7
nss-softokn.x86_64 0:3.34.0-2.el7
nss-softokn-freebl.i686 0:3.34.0-2.el7
nss-softokn-freebl.x86_64 0:3.34.0-2.el7
nss-sysinit.x86_64 0:3.34.0-4.el7
nss-tools.x86_64 0:3.34.0-4.el7
nss-util.x86_64 0:3.34.0-2.el7
ntsysv.x86_64 0:1.7.4-1.el7
Complete!
[root@VM_49_106_centos ~]#
[root@VM_49_106_centos ~]# sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
--2018-05-14 14:31:58-- https://pkg.jenkins.io/redhat-stable/jenkins.repo
Resolving pkg.jenkins.io (pkg.jenkins.io)... 52.202.51.185
Connecting to pkg.jenkins.io (pkg.jenkins.io)|52.202.51.185|:443... connected.
HTTP request sent,awaiting response... 200 OK
Length: 85
Saving to: ‘/etc/yum.repos.d/jenkins.repo’
100%[==========================================================>] 85 --.-K/s in 0s
2018-05-14 14:32:04 (7.46 MB/s) - ‘/etc/yum.repos.d/jenkins.repo’ saved [85/85]
[root@VM_49_106_centos ~]# sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
[root@VM_49_106_centos ~]# yum -y install jenkins
Loaded plugins: fastestmirror,langpacks
http://pkg.jenkins.io/redhat-stable/repodata/repomd.xml: [Errno 12] Timeout on http://pkg.jenkins.io/redhat-stable/repodata/repomd.xml: (28,'Connection timed out after 30001 milliseconds')
Trying other mirror.
http://pkg.jenkins.io/redhat-stable/repodata/repomd.xml: [Errno 12] Timeout on http://pkg.jenkins.io/redhat-stable/repodata/repomd.xml: (28,'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
http://pkg.jenkins.io/redhat-stable/repodata/repomd.xml: [Errno 12] Timeout on http://pkg.jenkins.io/redhat-stable/repodata/repomd.xml: (28,'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
jenkins | 2.9 kB 00:00:00
jenkins/primary_db | 24 kB 00:00:29
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:2.107.3-1.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Package Arch Version Repository Size
Installing:
jenkins noarch 2.107.3-1.1 jenkins 71 M
Transaction Summary
Install 1 Package
Total download size: 71 M
Installed size: 71 M
Downloading packages:
jenkins-2.107.3-1.1.noarch.rpm | 71 MB 00:00:12
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : jenkins-2.107.3-1.1.noarch 1/1
Verifying : jenkins-2.107.3-1.1.noarch 1/1
Installed:
jenkins.noarch 0:2.107.3-1.1
Complete!
[root@VM_49_106_centos ~]# systemctl start jenkins.service
[root@VM_49_106_centos ~]# chkconfig jenkins on
[root@VM_49_106_centos ~]#
[root@VM_49_106_centos ~]# ps -ef |grep jenkins
jenkins 10398 1 11 14:35 ? 00:00:16 /etc/alternatives/java -Dcom.sun.akuma.Daemon=daemonized -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
root 11000 8478 0 14:37 pts/1 00:00:00 grep --color=auto jenkins
[root@VM_49_106_centos ~]#
[root@VM_49_106_centos ~]# cat /var/lib/jenkins/secrets/initialAdminPassword
原文链接:https://www.f2er.com/centos/374337.html