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
相關文章
- Jenkins安裝Jenkins
- CI與CD之Docker上安裝JenkinsDockerJenkins
- 如何在LInux上安裝並執行JenkinsLinuxJenkins
- JENKINS安裝配置Jenkins
- yum 安裝 jenkinsJenkins
- docker安裝jenkinsDockerJenkins
- Jenkins CentOS 安裝JenkinsCentOS
- ubuntu 安裝jenkinsUbuntuJenkins
- Mac 安裝 JenkinsMacJenkins
- Centos 安裝 JenkinsCentOSJenkins
- docker 安裝 jenkinsDockerJenkins
- 在CentOS上安裝dockerCentOSDocker
- 在Windows上安裝MavenWindowsMaven
- 在centos上安裝molochCentOS
- SDL在win上安裝
- 在virtualbox上安裝ubuntuUbuntu
- 在Ubuntu上安裝MariaDBUbuntu
- 在CentOS上安裝GitCentOSGit
- 在Linux上安裝gskitLinux
- 在Debian上安裝freeswitch
- 在DebianStretch上安裝FFmpeg
- 在Android上安裝EntwareAndroid
- 在docker上安裝AWVSDocker
- Jenkins安裝及配置Jenkins
- Jenkins安裝部署(一)Jenkins
- Jenkins安裝與使用Jenkins
- Jenkins快速上手安裝Jenkins
- 【Jenkins】基於Windows系統安裝JenkinsJenkinsWindows
- 在Ubuntu 18.04上安裝TensorflowUbuntu
- 在 Intel NUC 上安裝 LinuxIntelLinux
- 在 Linux 上安裝 VMware 工具Linux
- 在CentOS 8.1上安裝 DockerCentOSDocker
- 分享在Linux上安裝PythonLinuxPython
- 在Linux 上安裝 SQL ServerLinuxSQLServer
- 在 Ubuntu 上安裝 Budgie 桌面Ubuntu
- ubuntu18.04 安裝jenkinsUbuntuJenkins
- aws安裝jenkins步驟Jenkins
- 安裝Jenkins常用外掛Jenkins