Day0: 在RaspberryPi上安裝Jenkins
如果你也有一個吃灰的樹莓派,不如也裝個Jenkins,一起來寫pipeline吧。
參考下面的文件,Jenkins成功安裝
https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu
- 安裝Java
pi@raspberrypi:~ $ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
- 安裝Jenkins
pi@raspberrypi:~ $ wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
OK
--
pi@raspberrypi:~ $ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
--
pi@raspberrypi:~ $ sudo apt-get update
Ign http://pkg.jenkins.io binary/ InRelease
Get:1 http://mirrordirector.raspbian.org jessie InRelease [15.0 kB]
Get:2 http://pkg.jenkins.io binary/ Release.gpg [181 B]
Get:3 http://pkg.jenkins.io binary/ Release [2,042 B]
Get:4 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
Get:5 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,539 kB]
Get:6 http://pkg.jenkins.io binary/ Packages [14.7 kB]
Get:7 http://archive.raspberrypi.org jessie/main armhf Packages [170 kB]
Ign http://pkg.jenkins.io binary/ Translation-en_GB
Ign http://pkg.jenkins.io binary/ Translation-en
Get:8 http://archive.raspberrypi.org jessie/ui armhf Packages [58.9 kB]
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Get:9 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [88.2 kB]
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9,911 kB in 10min 54s (15.1 kB/s)
Reading package lists... Done
--
pi@raspberrypi:~ $ sudo apt-get install jenkins
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
daemon
The following NEW packages will be installed:
daemon jenkins
0 upgraded, 2 newly installed, 0 to remove and 20 not upgraded.
Need to get 76.8 MB of archives.
After this operation, 77.6 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main daemon armhf 0.6.4-1 [80.9 kB]
Get:2 http://pkg.jenkins.io/debian-stable/ binary/ jenkins 2.164.2 [76.7 MB]
Fetched 76.8 MB in 15s (4,904 kB/s)
Selecting previously unselected package daemon.
(Reading database ... 165286 files and directories currently installed.)
Preparing to unpack .../daemon_0.6.4-1_armhf.deb ...
Unpacking daemon (0.6.4-1) ...
Selecting previously unselected package jenkins.
Preparing to unpack .../jenkins_2.164.2_all.deb ...
Unpacking jenkins (2.164.2) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Processing triggers for systemd (215-17+deb8u11) ...
Setting up daemon (0.6.4-1) ...
Setting up jenkins (2.164.2) ...
Processing triggers for systemd (215-17+deb8u11) ...
- 啟動Jenkins
pi@raspberrypi:~ $ sudo /etc/init.d/jenkins start
Correct java version found
[ ok ] Starting jenkins (via systemctl): jenkins.service.
- 登入IP:8080
- 複製密碼
pi@raspberrypi:~ $ sudo cat /var/lib/jenkins/secrets/initialAdminPassword
11d12b7daad44e8daf93778c23e89a81
- Tips:
- 安裝外掛的時候,遇到一些報錯,解決方法是勾選“Use browser for metadata download”選項。 Go To ->Manage Jenkins -> Configure Global Security -> Plugin Manager and check the box for Use browser for metadata download.
There were errors checking the update sites: SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
相關文章
- RaspberryPI ssh 服務安裝
- CI與CD之Docker上安裝JenkinsDockerJenkins
- Jenkins安裝Jenkins
- 在CentOS上安裝GitCentOSGit
- 在centos上安裝molochCentOS
- 在Windows上安裝MavenWindowsMaven
- 在CentOS上安裝dockerCentOSDocker
- 在CentOS上安裝PowerShellCentOS
- 在windows上安裝numpyWindows
- 在mac上安裝DockerMacDocker
- mysql 在windows上安裝MySqlWindows
- 在Centos上安裝wordpressCentOS
- 在AIX上安裝GCCAIGC
- hive在centos上安裝HiveCentOS
- 在lfs上安裝tcpdumpTCP
- 在AIX上安裝VNCAIVNC
- SDL在win上安裝
- Jenkins CentOS 安裝JenkinsCentOS
- Centos 安裝 JenkinsCentOSJenkins
- JENKINS安裝配置Jenkins
- docker 安裝 jenkinsDockerJenkins
- Mac 安裝 JenkinsMacJenkins
- 一. 安裝jenkinsJenkins
- Ubuntu安裝JenkinsUbuntuJenkins
- yum 安裝 jenkinsJenkins
- docker安裝jenkinsDockerJenkins
- ubuntu 安裝jenkinsUbuntuJenkins
- 持續化整合工具 Jenkins 在 Ubuntu 中安裝JenkinsUbuntu
- 在centos中安裝jenkins master測試環境CentOSJenkinsAST
- 在Linux上安裝gskitLinux
- 在CentOS 8.1上安裝 DockerCentOSDocker
- 在Ubuntu上安裝MariaDBUbuntu
- 在 Ubuntu 上安裝 Budgie 桌面Ubuntu
- 在docker上安裝AWVSDocker
- SonarQube在CentOS上的安裝CentOS
- 在Android上安裝EntwareAndroid
- 在 Mac OSX 上安裝 nginxMacNginx
- ZabbixAgent在Windows上安裝部署Windows