Jenkins实践文档(1)

本文主要介绍Jenkins环境的搭建方法。

软件安装

安装环境:Ubuntu 20.04

$sudo apt-get install default-jdk

$wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
$sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
$sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 9B7D32F2D50582E6
$sudo apt-get update
$sudo apt-get install jenkins

安装注意:按照官方的方法, 没有 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 9B7D32F2D50582E6 这条命令,会在 apt-get update 的地方出现错误,导致后面无法进行 apt-get install jenkins

......
Get:12 http://cn.archive.ubuntu.com/ubuntu focal-backports InRelease [98.3 kB]
Reading package lists... Done        
W: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9B7D32F2D50582E6
E: The repository 'https://pkg.jenkins.io/debian-stable binary/ Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容