Jenkins

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(用户)
第41行: 第41行:
 
  java -jar jenkins-cli.jar -s http://localhost:8080/ help
 
  java -jar jenkins-cli.jar -s http://localhost:8080/ help
 
  java -jar jenkins-cli.jar -s http://localhost:8080/ version
 
  java -jar jenkins-cli.jar -s http://localhost:8080/ version
 
==PostgreSQL==
 
使用[[PostgreSQL]]作为Jenkins的后端数据库。
 
*[https://wiki.jenkins-ci.org/display/JENKINS/PostgreSQL+Database+Plugin PostgreSQL Database Plugin]
 
 
==MongoDB==
 
*[https://wiki.jenkins-ci.org/display/JENKINS/PostgreSQL+Database+Plugin MongoDB Plugin]
 
 
==Distributed Builds==
 
*[https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds Running Multiple Slaves on the Same Machine]
 
*[https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Clustermanagementanddistributedbuild Cluster management and distributed build plugins]
 
 
==[[Puppet]]==
 
*[https://github.com/jenkinsci/infra-puppet Puppet manifests for managing the Jenkins project infrastructure]
 
  
 
==iOS==
 
==iOS==
第119行: 第105行:
 
==[[Phabricator]]==
 
==[[Phabricator]]==
 
*[http://www.dctrwatson.com/2013/01/jenkins-and-phabricator/ Jenkins and Phabricator sitting in a tree]
 
*[http://www.dctrwatson.com/2013/01/jenkins-and-phabricator/ Jenkins and Phabricator sitting in a tree]
 +
 +
==PostgreSQL==
 +
使用[[PostgreSQL]]作为Jenkins的后端数据库。
 +
*[https://wiki.jenkins-ci.org/display/JENKINS/PostgreSQL+Database+Plugin PostgreSQL Database Plugin]
 +
 +
==MongoDB==
 +
*[https://wiki.jenkins-ci.org/display/JENKINS/PostgreSQL+Database+Plugin MongoDB Plugin]
 +
 +
==Distributed Builds==
 +
*[https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds Running Multiple Slaves on the Same Machine]
 +
*[https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Clustermanagementanddistributedbuild Cluster management and distributed build plugins]
  
 
==[[Puppet]]==
 
==[[Puppet]]==
[https://github.com/jenkinsci/puppet-jenkins Puppet module for Jenkins]
+
*[https://github.com/jenkinsci/infra-puppet Puppet manifests for managing the Jenkins project infrastructure]
 +
*[https://github.com/jenkinsci/puppet-jenkins Puppet module for Jenkins]
  
 
==Docker==
 
==Docker==

2014年12月21日 (日) 09:14的版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Jenkins Thanks, Wikipedia.

Jenkins CI 基于 Hudson 构建,MIT许可协议。

目录

安装

下载 war 文件,然后运行,

java -jar jenkins.war
java -jar jenkins.war --httpPort=8081
java -jar jenkins.war --httpPort=8081 --ajp13Port=8010
java -jar jenkins.war --prefix=jenkins 
java -jar jenkins.war --controlPort=8001 // embedded Winstone application server

Debian

wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
vim  /etc/apt/sources.list
deb http://pkg.jenkins-ci.org/debian binary/
apt-get update
apt-get install jenkins
http://localhost:8080/

注意:你可能需要修改Java,vim /etc/default/jenkins

JAVA=/home/huihoo/jdk1.7.0_21/bin/java

和 chown -R jenkins:adm /var/lib/jenkins

Apache Server

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
ProxyPass /jenkins http://localhost:8081/jenkins 
ProxyPassReverse /jenkins http://localhost:8081/jenkins 
ProxyRequests Off 

Jetty

Nginx

使用

Jenkins 命令行

wget http://localhost:8080/jnlpJars/jenkins-cli.jar
java -jar jenkins-cli.jar -s http://localhost:8080/ help
java -jar jenkins-cli.jar -s http://localhost:8080/ version

iOS

Android

Jenkins DSL

PHP

Ruby

.NET

Plugins

若将Debian近30000个软件包的构建可视化,是多么伟大的工程 :)

GitHub

cd ~/.ssh
ssh-keygen -t rsa -C "[email protected]"
cp ~/.ssh/id_rsa* /var/lib/jenkins/.ssh/
在gitHub里单击账户设置。点击SSH 公钥 ,点击添加另一个公钥。
粘贴前面生成的id_rsa.pub 文件内容。
ssh [email protected]
若验证成功,会显示类似信息:
Hi openweb! You've successfully authenticated :)
git config --global user.name "username"
git config --global user.email "email"
git config --list

参考:

总是这个错误:stderr: Permission denied (publickey).

windows下解决:在jenkins中,把git的设置由git.exe改成git.cmd即可?
linux下:

Gerrit

Phabricator

PostgreSQL

使用PostgreSQL作为Jenkins的后端数据库。

MongoDB

Distributed Builds

Puppet

Docker

docker pull zaiste/jenkins
docker run -d -p 49001:8080 -v $PWD/jenkins:/var/lib/jenkins -t zaiste/jenkins
http://localhost:8080

问题

  • GitHub的整合,总报这个错误:stderr: Permission denied (publickey).

https://help.github.com/articles/error-permission-denied-publickey

用户

文档

更多文档 >>>

链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱