Jenkins 安装配置

牧云@^-^@ 提交于 2019-12-08 20:21:24

Window 安装 配置 Jenskins

Jenkins是一个基于Java开发的一种持续集成工具,开源软件项目,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能 ,用于监控持续重复的工作,功能包括:
  • 持续的软件版本发布/测试项目。
  • 监控外部调用执行的工作。

 

1. 安装 JDK

下载特定版本的JDK, jdk-11.0.5_windows-x64_bin.exe (下载地址:https://www.oracle.com/technetwork/java/javase/downloads/index.html)

 

2. 配置环境变量

Setting the PATH Environment Variable
It is useful to set the PATH variable permanently for JDK 13 so that it is persistent after rebooting.

If you do not set the PATH variable, then you must specify the full path to the executable file every time that you run it. For example:Typically, the full path is for JDK is:C:\Program Files\Java\jdk-13\bin

To set the PATH variable on Microsoft Windows:

  • Select Control Panel and then System.Click Advanced and then Environment Variables.Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.
    Note:The PATH environment variable is a series of directories separated by semicolons (;) and is not case-sensitive. Microsoft Windows looks for programs in the PATH directories in order, from left to right.
    You should only have one bin directory for a JDK in the path at a time. Those following the first instance are ignored.

3.安装Jenkins.war

  • 下载最新的版本(一个 WAR 文件)。Jenkins官方网址: http://Jenkins-ci.org/
  • 命运行运行 启动 Jenkins: java -jar jenkins.war (默认情况下端口是8080,如果要使用其他端口启动,可以通过命令行”java –jar Jenkins.war --httpPort=80”的方式修改)

4.启动Jenkins

切换到jenkins.war存放的目录,输入如下命令:Java -jar Jenkins.war, 然后再在浏览器输入: http://localhost:8080
 
5. 安装 Plugins for Jenkins
  • 第一次启动 Jenskins, 需要输入Administrator 密码来unlock Jenkins(初始的管理员密码,jenkins自动生成的,根据上面红色的路径找到密码,拷到下面的输入框中)

 

  •  安装plugins (安装插件,可以默认的安装,也可以自己选择,(jenkins配置好后也可以安装插件)这里我们选择默认的

 

 

 

 

 

  •  登录 http://localhost:8080, 输入 Admin user 和 password

 

 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!