Jenkins 操作文档1.部署操作
登录
项目列表
构建部署
控制台输出
构建部署结果
2.部署配置新建
配置
项目名称
必须唯一
丢弃旧的构建控制磁盘空间消耗
启用项目安全控制登录用户权限
参数化构建过程
源码管理
绝对地址填写方式
参数化地址填写方式
(标红的可以忽略,实际部署自动添加参数)
Checkout选项
分布式部署
勾选后,此项目在指定的节点编译,主要用于多机房部署
不勾选则在Jenkins master编译
构建脚本
Shell脚本,根据项目要求不同填写脚本,这里是直接打tar包
构建后操作登录信息
认证测试
部署配置
部署操作需要捕捉异常,否则Jenkins自动提示Success
if [ "$?" != "0" ]; then
exit 1
fi
部署后邮件通知
3.部署状态
任务历史,蓝色球状图标标准构建成功,其他颜色表示有异常
4.Jenkins系统管理
Git
执行文件
Git账号
Maven
Jenkins根目录
SSHD Port
邮件通知
SSH Server
部署配置中需要引用的
GitLab
5.Jenkins安全设置
启用安全
访问控制
项目矩阵授权策略
Admin所有权限都给
匿名账户没有任何权限其他账户只有Read权限
6.Jenkins管理插件
已安装插件
Ant Plugin
This plugin adds Apache Ant support to Jenkins.
conditional-buildstep
A buildstep wrapping any number of other buildsteps, controlling their execution based on a defined condition (e.g. BuildParameter).
Copy To Slave Plugin
This plugin allows copying files located somewhere on the master node into the jobs' workspaces, whether their builds take place on the master node or on slave nodes.
Credentials Plugin
This plugin allows you to store credentials in Jenkins.
CVS Plug-in
Integrates Jenkins with CVS version control system using a modified version of the Netbeanscvsclient.
Environment Injector Plugin
This plugin makes it possible to set an environment for the builds.
External Monitor Job Type Plugin
Adds the ability to monitor the result of externally executed jobs.
Git Client Plugin
Shared library plugin for other Git related Jenkins plugins.
Git Plugin
This plugin integrates GIT with Jenkins.
GitLab Plugin
This plugin integrates GitLab to Jenkins by faking a GitLab CI Server.
Hudson SCP publisher plugin
This plugin uploads build artifacts to repository sites using SCP (SSH) protocol.
Javadoc Plugin
This plugin adds Javadoc support to Jenkins.
JUnit Plugin
Allows JUnit-format test results to be published.
LDAP Plugin
Security realm based on LDAP authentication.
Mailer Plugin
This plugin allows you to configure email notifications. This is a break-out of the original core based email component.
MapDB API Plugin
This plugin provides a shared dependency on the MapDB library so that other plugins can co-operate when using this library.
Matrix Authorization Strategy Plugin
Offers matrix-based security authorization strategies (global and per-project).
Matrix Project Plugin
Multi-configuration (matrix) project type.
Maven Project Plugin
Jenkins plugin for building Maven 2/3 jobs via a special project type.
Multijob Plugin
This plugin is a MultiJob plugin.
OWASP Markup Formatter Plugin
Uses the OWASP Java HTML Sanitizer to allow safe-seeming HTML markup to be entered in project descriptions and the like.
PAM Authentication plugin
Adds Unix Pluggable Authentication Module (PAM) support to Jenkins.
Parameterized Trigger plugin
This plugin lets you trigger new builds when your build has completed, with various ways of specifying parameters for the new build.
Publish Over SSH
Send build artifacts over SSH
Role-based Authorization Strategy
Enables authorization using a role-based strategy.
Run Condition Plugin
Core conditions to select whether to execute a build step or publisher. Used by the [Flexible Publish Plugin] and the [Conditional BuildStep Plugin].
SCM API Plugin
This plugin provides a new enhanced API for interacting with SCM systems.
Slave Prerequisites plugin
Run a script on slave node before starting job on it to check some prerequisites.
Slave SetupPlugin
This plugin prepares slaves for build execution by letting you copy files and execute scripts before the slave gets used.
slave-status
Visit a url like http://myslave:3141 to see an XML document giving the slave's status. Use automated tools like curl or nagios to check this data periodically, if you want to.
SSH Credentials Plugin
This plugin allows you to store SSH credentials in Jenkins.
SSH Slaves plugin
This plugin allows you to manage slaves running on \*nix machines over SSH.
Subversion Plug-in
This plugin adds the Subversion support (via SVNKit) to Jenkins.
Token Macro Plugin
This plug-in adds reusable macro expansion capability for other plug-ins to use.
Translation Assistance plugin
This plugin adds an additional dialog box in every page, which enables people to contribute localizations for the messages they are seeing in the current page.
Windows Slaves Plugin
Allows you to connect to Windows machines and start slave agents on them.