Ubuntu安装Jenkins

环境准备

apt update

  1. jdk
apt install openjdk-11-jdk
java -version
  1. maven
apt install maven
mvn -version
  1. git
apt install git
git -version

将Jenkins存储库添加到系统中

sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

安装Jenkins

apt install jenkins
验证是否安装完成
systemctl status jenkins

你可能感兴趣的:(Linux,jenkins,ubuntu,linux)