设为首页 收藏本站
查看: 1115|回复: 0

[经验分享] jenkins插件使用小结

[复制链接]

尚未签到

发表于 2018-1-6 20:39:03 | 显示全部楼层 |阅读模式
  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>  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 VariableDescriptionBUILD_NUMBERThe current build number, such as "153"BUILD_IDThe current build>
  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 VariableReplacesDescriptionPROMOTED_URLBUILD_URLThe URL of the original Jenkins job that is involved with the promotion. BUILD_URL now refers to the Promotion's URLPROMOTED_JOB_NAMEJOB_NAMEThe name of the original Jenkins job that is involved with the promotion. JOB_NAME now refers to the Promotion's job's namePROMOTED_NUMBERBUILD_NUMBERThe Build Number of the job being promoted. BUILD_NUMBER now refer's the the Promotion NumberPROMOTED_IDBUILD_IDThe Build>向其他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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-432355-1-1.html 上篇帖子: Jenkins进阶系列之 下篇帖子: Jenkins+Jmeter+Ant接口持续集成
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表