jenkins官网:https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project

jenkins插件:

1.AnsiColor : This plugin adds support for ANSI escape sequences, including color, to Console Output.

2.Ant Plugin :This plugin adds Apache Ant support to Jenkins.

3.Copy Artifact Plugin :Adds a build step to copy artifacts from another project.

4.Custom View Tabs Plugin : This plugin allows custom labels and colours on view tabs to show job status information.

5.External Monitor Job Type Plugin : Adds the ability to monitor the result of externally executed jobs.

6.Gerrit Trigger : This plugin integrates with Gerrit code review.

7.Git Client Plugin : Shared library plugin for other Git related Jenkins plugins.

8.Git Plugin : This plugin integrates GIT with Jenkins.

9.LDAP Email Plugin : This plugin resolves user email addresses from an LDAP directory. It is not needed if Jenkins uses LDAP as its authentication source and user records have a standard "mail" attribute.

10.LDAP Plugin : Adds LDAP authentication to Jenkins.

11.Matrix Authorization Strategy Plugin : Offers matrix-based security authorization strategies (global and per-project).

12.Matrix Project Plugin : Multi-configuration (matrix) project type.

13.Multiple SCMs Plugin : This plugin enables the selection of multiple source code management systems for a build. For example, it enables checking out the source code from one SCM while checking out legacy or third-party code from another.

14.Nested View Plugin : View type to allow grouping job views into multiple levels instead of one big list of tabs.

15.Parameterized Remote Trigger Plugin : This plugin triggers a job on a remote Jenkins host

16.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.

17.Promoted Builds Plugin : This plugin implements a "promoted build" feature where a build of one job can be marked as "promoted" when it passes certain criteria.

18.SCM API Plugin : This plugin provides a new enhanced API for interacting with SCM systems.

19.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.

20.Subversion Plugin : This plugin adds the Subversion support (via SVNKit) to Jenkins.

21.JaCoCo plugin : This plugin allows you to capture code coverage report from JaCoCo. Jenkins will generate the trend report of coverage. This plugin is fork of the [Emma Plugin]. Big part of the code structure comes from it, however, it is completely refactored. It also includes functionality similar to the [Emma Coverage Column] which allows to include a column in Dashboards which displays the latest overall coverage numbers and links to the coverage report.(生成测试报告)

22.JUnit Plugin : Allows JUnit-format test results to be published.(生成测试报告)

23.Post-Build Script Plug-in : PostBuildScript makes it possible to execute a set of scripts at the end of the build. 在build结束后执行脚本。

24.Hudson Post build task : This plugin allows to execute a batch/shell task depending on the build log output. 在build结束后根据build的log输出执行脚本。

jenkins环境变量:

Jenkins Set Environment Variables

When a Jenkins job executes, it sets some environment variables that you may use in your shell script, batch command, Ant script or Maven POM 1. The following table contains a list of all of these environment variables.
Environment Variable Description
BUILD_NUMBER The current build number, such as "153"
BUILD_ID The current build id, such as "2005-08-22_23-59-59" (YYYY-MM-DD_hh-mm-ss)
BUILD_URL & T/ z: D: Z/ Z0 G  w The URL where the results of this build can be found (e.g. http://buildserver/jenkins/job/MyJobName/666/)
NODE_NAME The name of the node the current build is running on. Equals 'master' for master node.
JOB_NAME Name of the project of this build. This is the name you gave your job when you first set it up. It's the third column of the Jenkins Dashboard main page.
BUILD_TAG String of jenkins-${JOB_NAME}-${BUILD_NUMBER}. Convenient to put into a resource file, a jar file, etc for easier identification.
JENKINS_URL Set to the URL of the Jenkins master that's running the build. This value is used by Jenkins CLIfor example
EXECUTOR_NUMBER The unique number that identifies the current executor (among executors of the same machine) that's carrying out this build. This is the number you see in the "build executor status", except that the number starts from 0, not 1.
JAVA_HOME If your job is configured to use a specific JDK, this variable is set to the JAVA_HOME of the specified JDK. When this variable is set, PATH is also updated to have $JAVA_HOME/bin.
WORKSPACE The absolute path of the workspace.
SVN_REVISION For Subversion-based projects, this variable contains the revision number of the module. If you have more than one module specified, this won't be set. 
CVS_BRANCH For CVS-based projects, this variable contains the branch of the module. If CVS is configured to check out the trunk, this environment variable will not be set.
GIT_COMMIT  For Git-based projects, this variable contains the Gitish of the commit checked out for the build3 ^: F6 x* y5 ~+ ?+ S5 O
GIT_BRANCH  For Git-based projects, this variable contains the Git branch that was checked out for the build (normally master) ; k. N; D; |- _( _- z( e( W

Promoted Build Plugin Environment Variables

If you are using the Promoted Build Plugin, you will have access to the following environment variables. This allows you to access information about your Jenkins build since certain environment variables stated above (such as BUILD_TAG now refer to the Promoted Build Plugin's job.
Environment Variable Replaces Description
PROMOTED_URL BUILD_URL The URL of the original Jenkins job that is involved with the promotion. BUILD_URL now refers to the Promotion's URL
PROMOTED_JOB_NAME JOB_NAME The name of the original Jenkins job that is involved with the promotion. JOB_NAME now refers to the Promotion's job's name
PROMOTED_NUMBER BUILD_NUMBER The Build Number of the job being promoted. BUILD_NUMBER now refer's the the Promotion Number
PROMOTED_ID BUILD_ID The Build ID (ex. "2005-08-22_23-59-59" (YYYY-MM-DD_hh-mm-ss) ) of the original Jenkins job. BUILD_ID now refer's to the Promotion's build ID.

向其他project传递参数方式:

当前project的build_num:

REAL_DEPLOY_NUM=<SpecificBuildSelector><buildNumber>$PROMOTED_NUMBER</buildNumber></SpecificBuildSelector>

当前project的project_name

QUICK_JOB=$PROMOTED_JOB_NAME

比如quick完成以后自动进行deploy,但是deploy需要quick任务的项目名及构建号,配置截图如下:

quick任务传递参数:

deploy任务接收参数并使用:

注:若果jenkins首页“添加说明”中不支持html语法,需要在jenkins->系统管理->Configure Global Security->Markup Formatter中选择非"escaped HTML"的选项,然后就可以支持html了。

换logo的话,在war/images下保存logo(默认使用headshot.png),在META-INF/JENKINS.SF和META-INF/MANIFEST.MF配置使用的logo;可以修改配置(没有试验),也可以替换war/images/headshot.png(试验成功)。


[ci]容器ci索引 http://www.cnblogs.com/iiiiher/p/8026689.html

[ci]jenkins安装&插件管理&java-helloworld之旅 http://www.cnblogs.com/iiiiher/p/7159309.html

[ci]jenkins-slave的添加(vm模式,通过ssh和jnlp) http://www.cnblogs.com/iiiiher/p/7930251.html

[ci]jenkins-slave-ssh docker容器化-自动注入key http://www.cnblogs.com/iiiiher/p/7978552.html

[ci]jenkins-slave-ssh docker容器化-用户名密码 http://www.cnblogs.com/iiiiher/p/7978212.html

[ci]jenkins server启动,通过jnlp的方式启动slave(容器模式) http://www.cnblogs.com/iiiiher/p/7978831.html

[svc]tomcat配置文件详解-最简单的基于mvn的war包 http://www.cnblogs.com/iiiiher/p/7943097.html

[ci]jenkins构建容器项目java-helloworld-非docker plugin模式,脚本实现参数化构建 http://www.cnblogs.com/iiiiher/p/7943718.html

[ci] jenkins kubernetes插件配置(容器模式)-通过jnlp http://www.cnblogs.com/iiiiher/p/7979336.html

[ci][k8s]jenkins配合kubernetes插件实现k8s集群构建的持续集成 http://www.cnblogs.com/iiiiher/p/8026555.html

jenkins插件使用小结的更多相关文章

  1. 持续集成之Jenkins插件使用(一)- 多个job之间的串并联

    转载自:http://qa.blog.163.com/blog/static/190147002201391661510655/ Jenkins除了开源和免费,还有一个最吸引人的功能之一就是支持插件. ...

  2. jenkins插件 查看job下次运行时间

    文章来自:http://www.ciandcd.com 文中的代码来自可以从github下载: https://github.com/ciandcd jenkins插件next executions( ...

  3. Jenkins插件及 测试源码

    Jenkins 插件: https://updates.jenkins-ci.org/download/plugins/ 小米的一份android源码,测试工具,用于抢红包: https://gith ...

  4. 微软开放技术发布开源 Jenkins 插件以将 Windows Azure Blob 服务用的开作存储库

     发布于 2014-02-10 作者 陈 忠岳 持续集成 (CI) 的历史源远流长, 其宗旨在于软件团队在敏捷环境中不断将他们的工作整合为持续构建.管理 CI 进程的工具已存在一段时间.过去几年中 ...

  5. JQuery插件使用小结

    JQuery插件使用小结

  6. jenkins(4): jenkins 插件

    1.  jenkins插件下载镜像加速 jenkins插件清华大学镜像地址 https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-ce ...

  7. Jenkins插件安装实战篇

    Jenkins插件安装实战篇 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 上篇博客我介绍了Jenkins是啥,以及持续集成,持续交付,持续部署的概念,那么问题来了:你知道CI和C ...

  8. [原]Jenkins(十五)---jenkins插件之deploy

    /** * lihaibo * 文章内容都是根据自己工作情况实践得出. *如有错误,请指正 * 版权声明:本博客欢迎转发,但请保留原作者信息! http://www.cnblogs.com/horiz ...

  9. Jenkins插件管理

    1.配置jenkins需要的maven.jdk路径 [root@db01 secrets]# echo $JAVA_HOME /application/jdk [root@db01 secrets]# ...

随机推荐

  1. combogrid翻页后保持显示内容为配置的textField解决办法

    easyui的combogrid当配置pagination为true进行分页时,当datagrid加载其他数据页,和上一次选中的valueField不匹配时,会导致combogrid直接显示value ...

  2. [Android Studio] Android Studio如何删除module(转载)

    转载地址:http://blog.csdn.net/hyr83960944/article/details/37519299 当你想在Android Studio中删除某个module时,大家习惯性的 ...

  3. Python任务调度模块 – APScheduler。动态修改调度时间间隔

    APScheduler可以把调度任务放到内存里,也可以把任务放到数据库里,那么如何交互式修改定时任务的执行时间间隔或者下次执行时间呢? 方案一:把定时任务放到数据库里,修改数据库里任务的调度时间 方案 ...

  4. OpenCV学习(14) 细化算法(2)

          前面一篇教程中,我们实现了Zhang的快速并行细化算法,从算法原理上,我们可以知道,算法是基于像素8邻域的形状来决定是否删除当前像素.还有很多与此算法相似的细化算法,只是判断的条件不一样. ...

  5. android 模拟器无法ping通主机

    很多时候我们通过adb 连接 android 模拟器调试网络程序,也许你能直接访问浏览器,浏览网站,但是却无法ping同局网的一个机器,比如: # ping www.sina.com         ...

  6. Postgresql死锁的处理

    今天遇到一个奇怪的现象,select和delete表时正常执行,但truncate和drop表时会一直运行,也不报错. 查了些资料才发现问题的原因,总结如下: "drop table &qu ...

  7. go语言基础之for循环

    1.for 的用法 示例: package main //必须有一个main包 import "fmt" func main() { //for 初始化条件 ; 判断条件 ; 条件 ...

  8. ElementUI表单验证使用

    1.设计校验方式: 我们表单验证的rules一般封装一个单独的js文件,比如我之前写的这个博客: ElementUI使用问题记录:设置路由+iconfont图标+自定义表单验证 可以修改下:公共的校验 ...

  9. vs 字体

    看代码看得眼疼不能不说是程序员的恶梦,那么,选择适当的字体也算是对自己的救赎吧.周末闲得无聊,在网上乱逛,搜索了一些资料整理一下给大家分享,仅作记录而已,参考使用: 1.一个编程人员痛苦的选择 一般适 ...

  10. 杭电 HDU 1031 Design T-Shirt

    Design T-Shirt Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) T ...