安装
- 下载Jenkins,下载地址:https://jenkins-ci.org/,下载下来是一个war包,然后拷贝到c:\jenkins下。
- 安装java JDK,设置JAVA_HOME环境变量且将%JAVA_HOME%\bin加入到PATH环境变量中。
- 运行命令,c:\jenkins>java -jar jenkins.war。
- 查看是否安装成功,访问http://localhost:8080,如果出现如下jenkins的主界面即表示安装成功啦。
Running from: C:\jenkins\jenkins.war
webroot: $user.home/.jenkins
[Winstone 2011/11/02 17:11:27] - Beginning extraction from war file
Jenkins home directory: C:\Users\AAA\.jenkins found at: $user.home/.jenkins
[Winstone 2011/11/02 17:12:57] - HTTP Listener started: port=8080
[Winstone 2011/11/02 17:12:57] - AJP13 Listener started: port=8009
[Winstone 2011/11/02 17:12:58] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
Nov 02, 2011 5:12:58 PM jenkins.model.Jenkins$6 onAttained
INFO: Started initialization
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Listed all plugins
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Prepared all plugins
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Started all plugins
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Augmented all extensions
Nov 02, 2011 5:13:02 PM jenkins.model.Jenkins$6 onAttained
INFO: Loaded all jobs
Nov 02, 2011 5:13:04 PM jenkins.model.Jenkins$6 onAttained
INFO: Completed initialization
Nov 02, 2011 5:13:04 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 37157
Nov 02, 2011 5:13:14 PM hudson.WebAppMain$2 run
INFO: Jenkins is fully up and running
环境配置
这里的环境配置主要是安装所需的插件,比如如果要使用GitLab的话,一般需要安装以下插件:GIT client plugin、GIT plugin、GitLab Plugin、MSBuild Plugin,前三个是与Git相关的插件,MSBuild是用于构建.net项目的插件。