Skip to content

Commit a7df16a

Browse files
author
gclm
committed
fix(增加 jenkins 离线安装)
1 parent 876a8a2 commit a7df16a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/jenkins.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/usr/bin/env bash
22

3-
43
install(){
54
echo -e "开始安装 Jenkins"
5+
wget https://mirrors.huaweicloud.com/jenkins/redhat-stable/jenkins-2.222.4-1.1.noarch.rpm
6+
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
7+
rpm -ivh jenkins-2.222.4-1.1.noarch.rpm
8+
}
9+
10+
install2(){
611
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
712
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
813
yum install -y jenkins

0 commit comments

Comments
 (0)