Jenkins 常用插件

MuYusen 于 2023-08-08 发布 本文总阅读量

好用、实用、谁用谁知道

AnsiColor

Adds ANSI coloring to the Console Output

PS:改变Jenkins 终端输出的颜色

Blue Ocean

BlueOcean Aggregator

PS:Jenkins的一种新的界面,很炫酷。安装过程中,会安装很多相关插件。

Configuration as Code

PS:通过配置文件直接配置Jenkins的一些系统配置选项。可用的配置项如下:

jenkins.yaml


jenkins:
  systemMessage: "Jenkins configured automatically by Jenkins Configuration as Code plugin\n\n"
  globalNodeProperties:
  - envVars:
      env:
      - key: VARIABLE1
        value: foo
      - key: VARIABLE2
        value: bar
  securityRealm:
    ldap:
      configurations:
        - groupMembershipStrategy:
            fromUserRecord:
              attributeName: "memberOf"
          inhibitInferRootDN: false
          rootDN: "dc=acme,dc=org"
          server: "ldaps://ldap.acme.org:1636"

  nodes:
    - permanent:
        name: "static-agent"
        remoteFS: "/home/jenkins"
        launcher:
          inbound:
            workDirSettings:
              disabled: true
              failIfWorkDirIsMissing: false
              internalDir: "remoting"
              workDirPath: "/tmp"

  slaveAgentPort: 50000
  agentProtocols:
    - "jnlp2"

tool:
  git:
    installations:
      - name: git
        home: /usr/local/bin/git

credentials:
  system:
    domainCredentials:
      - credentials:
          - basicSSHUserPrivateKey:
              scope: SYSTEM
              id: ssh_with_passphrase_provided
              username: ssh_root
              passphrase: ${SSH_KEY_PASSWORD}
              description: "SSH passphrase with private key file. Private key provided"
              privateKeySource:
                directEntry:
                  privateKey: ${SSH_PRIVATE_KEY}

Dingding[钉钉] Plugin

钉钉Jenkins通知器

PS:通知类型,通过钉钉的群机器人,发送Job的一些信息(开始和结果)

Email Extension Plugin

This plugin is a replacement for Jenkins’s email publisher. It allows to configure every aspect of email notifications: when an email is sent, who should receive it and what the email says。

PS:邮件扩展插件

Environment Injector Plugin

This plugin makes it possible to set an environment for the builds.

PS:预至一部分环境变量:以脚本、属性文件、密码等多种形式。

Folders Plugin

This plugin allows users to create “folders” to organize jobs. Users can define custom taxonomies (like by project type, organization type etc). Folders are nestable and you can define views within folders. Maintained by CloudBees, Inc.

PS:建一种文件夹形式的Job,可以用于job的归类,但是会加长workspace的路径。

Gerrit Trigger

This plugin integrates with Gerrit code review.

PS:和Gerrit集成,配合在一起进行code review。

Git plugin

This plugin integrates Git with Jenkins.

PS:集成git

Gitlab Hook Plugin

Enables Gitlab web hooks to be used to trigger SMC polling on Gitlab projects

PS:和GitLab Plugin一起用,和gitlab工具集成

GitLab Plugin

This plugin allows GitLab to trigger Jenkins builds and display their results in the GitLab UI.

PS:和Gitlab Hook Plugin一起用,和gitlab工具集成

Nested View Plugin

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

PS:建立多级view,用于Job归类。

Pipeline

A suite of plugins that lets you orchestrate automation, simple or complex. See Pipeline as Code with Jenkins for more details.

PS:流水线插件,从Jenkins 2.0之后开始支持,下一代利器。

Rebuilder

This plugin is for rebuilding a job using the same parameters.

REPO plugin

This plugin allows use of repo as an SCM tool. A repo binary is required.

PS:集成Repo,slave上要求安装repo,不应该只是将repo拷贝到用户目录下面。一般放在:/usr/bin/repo

Simple Theme Plugin

PS:通过CSS和JavaScript配置Jenkins外观

Timestamper

Adds timestamps to the Console Output

Version Number Plug-In

This plugin allows much richer version numbers to be created and used.

PS:自定义生成版本号