欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2/Agda, C++/Lisp/Haskell
Jenkins
来自开放百科 - 灰狐
您可以在Wikipedia上了解到此条目的英文信息 Jenkins Thanks, Wikipedia. |
Jenkins CI 基于 Hudson 构建,MIT许可协议。
目录 |
简介
功能
安装
体验
快速体验Jenkins
docker volume create --name=m2repo sudo chmod a+rw $(docker volume inspect -f '模板:.Mountpoint' m2repo) docker run --rm -p 127.0.0.1:2222:2222 -p 127.0.0.1:8080:8080 -p 127.0.0.1:8081:8081 -p 127.0.0.1:9418:9418 -ti -v m2repo:/m2repo jenkinsci/workflow-demo http://localhost:8080/ http://localhost:8080/blue
流水线
Jenkins 长期使用嵌入式 Groovy 引擎来为管理员和用户提供高级脚本功能。另外, Jenkins 流水线的实现者发现 Groovy是构建现在成为脚本式流水线 DSL 的坚实基础。
声明式流水线、脚本式流水线是一种基于 Groovy 的领域特定语言(DSL),大多数 Groovy 语法都可以无需修改,直接在脚本式流水线中使用。
- Jenkins Pipeline
- Jenkins Pipeline Unit testing framework
- Eclipse Jenkins 编辑器
- Jenkinsfiles Examples Creating a Jenkinsfile pipeline
macOS
下载macOS版本安装后,开关机会自动启动Jenkins。
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
War文件
下载 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
Decker
docker pull jenkins/jenkins docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts http://0.0.0.0:8080/ 密码在容器的 /var/jenkins_home/secrets/initialAdminPassword如:1b14ff23c69248f6a3347ab66ede0259
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
- Plugins for Android development
- Continuous Integration for Android Apps with Jenkins and Maven3
- Jenkins XML API and Mobile Devices
Jenkins DSL
- Jenkins Job DSL Playground
- Unmasking the Jenkins DSL
- Jenkins user plugin: This time it's Groovy
- Configuration as Code Adoption of the Job DSL Plugin at Netflix
- Configuration as Code The Job DSL Plugin
Groovy
- Jenkins2 Pipeline jobs using Groovy code in Jenkinsfile
- jenkins-scripts Scripts in Groovy, shell, Ruby, Python, whatever for managing/interacting with Jenkins
JavaScript
PHP
Python
Ruby
- Plugins for Ruby development
- Ruby Plugins
- Ruby CI with Github, Jenkins, and EC2 Spot Instances
- Graduating To Jenkins CI For Ruby on Rails Teams
.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
用户
- Jenkins
- Apache public build and test server
- CloudFoundry.org
- OpenStack
- Apple Swift
- LibreOffice
- How Jenkins Builds the Netflix Global Streaming Service
- Yahoo!持续集成、Yahoo!持续交付
- Liferay
- Eclipse
- ROS Build
文档
- Jenkins for continuous delivery of infrastructure via Docker
- Empower DevOps with Hudson Instance Per Project (HIPP)
- Jenkins State of Union
- Building a Continuous Delivery Pipeline with Gradle and Jenkins
- Lightweight PaaS for Jenkins CI Environments with Docker
- Multi-Stage-CI System with Jenkins in an Embedded World
- Building, Testing & Deploying Android Apps with Jenkins
- Ruby CI with Github, Jenkins, and EC2 Spot Instances
- Jenkins + Gitlab + RabbitMQ + Symfony2 + Phing
图集
链接
- Jenkins CI官网
- Jenkins CI @ GitHub
- CloudBees: Cloud Platform as a Service for Java Web Apps, Supported Jenkins/Hudson and Jenkins/Hudson in the Cloud
- 基于 Jenkins 快速搭建持续集成环境
- 使用 Jenkins 实现软件开发的持续集成
- Jenkins Enterprise by CloudBees
分享您的观点