介绍 (Introduction)
Jenkins is an open-source automation server that automates the repetitive technical tasks involved in the continuous integration and delivery of software. Jenkins is Java-based and can be installed from Ubuntu packages or by downloading and running its web application archive (WAR) file — a collection of files that make up a complete web application to run on a server.
Jenkins是一个开源自动化服务器,可自动执行软件的持续集成和交付中涉及的重复性技术任务。 Jenkins是基于Java的,可以从Ubuntu软件包中安装,也可以通过下载并运行其Web应用程序存档(WAR)文件来安装,该文件是组成要在服务器上运行的完整Web应用程序的文件的集合。
In this tutorial, you will install Jenkins by adding its Debian package repository, and using that repository to install the package with apt
.
在本教程中,您将通过添加Jenkins的Debian软件包存储库并使用该存储库通过apt
安装软件包来安装Jenkins。
先决条件 (Prerequisites)
To follow this tutorial, you will need:
要遵循本教程,您将需要:
One Ubuntu 18.04 server configured with a non-root sudo user and firewall by following the Ubuntu 18.04 initial server setup guide. We recommend starting with at least 1 GB of RAM. See Choosing the Right Hardware for Masters for guidance in planning the capacity of a production Jenkins installation.
按照Ubuntu 18.04初始服务器设置指南 ,使用非root用户sudo用户和防火墙配置一台Ubuntu 18.04服务器。 我们建议至少从1 GB RAM开始。 请参阅为母版选择合适的硬件,以计划生产Jenkins生产设备的容量。
Java 8 installed, following our guidelines on installing specific versions of OpenJDK on Ubuntu 18.04.
遵循我们在Ubuntu 18.04上安装特定版本的OpenJDK的准则,已