首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jenkins -通过Ansible或CLI安装推荐的插件

问Jenkins -通过Ansible或CLI安装推荐的插件
EN

Stack Overflow用户
提问于 2021-08-05 07:33:42
回答 2查看 153关注 0票数 0

有没有办法在使用Ansible时安装Jenkins推荐的插件(通过向导安装时显示)?

​

​

我甚至开始在我的Ansible YML中创建这个列表,但它非常长,并且名称有时与存储库列表here不匹配

代码语言:javascript
复制
- name: Install plugin
    community.general.jenkins_plugin:
      name: "{{ item }}"
      url_username: "{{ jenkins_admin_username }}"
      url_password: "{{ jenkins_admin_password }}"
      url: http://localhost:8080
      timeout: 90
    with_items:
      - git
      - maven
      - thinbackup
      - build-pipeline-plugin
      - trilead-api
      - ant

通过CLI的解决方案也可以很好地工作。谢谢!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-08-05 08:38:40

在Here上列出推荐的插件。

代码语言:javascript
复制
- name: Install plugin
        community.general.jenkins_plugin:
          name: "{{ item }}"
          url_username: "{{ jenkins_admin_username }}"
          url_password: "{{ jenkins_admin_password }}"
          url: http://localhost:8080
          timeout: "{{ jenkins_plugins_timeout }}"
          state: latest
        with_items:  
          - ace-editor
          - ant
          - antisamy-markup-formatter
          - apache-httpcomponents-client-4-api
          - bootstrap4-api
          - bootstrap5-api
          - bouncycastle-api
          - branch-api
          - build-timeout
          - caffeine-api
          - checks-api
          - cloudbees-folder
          - command-launcher
          - credentials
          - credentials-binding
          - display-url-api
          - durable-task
          - echarts-api
          - email-ext
          - font-awesome-api
          - git
          - git-client
          - git-server
          - github
          - github-api
          - github-branch-source
          - gradle
          - handlebars
          - jackson2-api
          - jaxb
          - jdk-tool
          - jjwt-api
          - jquery3-api
          - jsch
          - junit
          - ldap
          - lockable-resources
          - mailer
          - matrix-auth
          - matrix-project
          - momentjs
          - okhttp-api
          - pam-auth
          - pipeline-build-step
          - pipeline-github-lib
          - pipeline-graph-analysis
          - pipeline-input-step
          - pipeline-milestone-step
          - pipeline-model-api
          - pipeline-model-definition
          - pipeline-model-extensions
          - pipeline-rest-api
          - pipeline-stage-step
          - pipeline-stage-tags-metadata
          - pipeline-stage-view
          - plain-credentials
          - plugin-util-api
          - popper-api
          - popper2-api
          - resource-disposer
          - scm-api
          - script-security
          - snakeyaml-api
          - ssh-credentials
          - ssh-slaves
          - sshd
          - structs
          - timestamper
          - token-macro
          - trilead-api
          - workflow-aggregator
          - workflow-api
          - workflow-basic-steps
          - workflow-cps
          - workflow-cps-global-lib
          - workflow-durable-task-step
          - workflow-job
          - workflow-multibranch
          - workflow-scm-step
          - workflow-step-api
          - workflow-support
          - ws-cleanup
票数 0
EN

Stack Overflow用户

发布于 2021-08-05 08:49:12

我不能对Ansible部分说话,因为我没有使用它,尽管它确实有Ansible模块可以帮助你:community.general.jenkins_plugin – Add or remove Jenkins plugin

recommended plugins is found in GitHub的主列表;这就是构建UI的基础。

推荐的安装插件的命令行工具是Plugin Installation Manager Tool for Jenkins。

CLI工具可以检索与您拥有的Jenkins版本或特定版本兼容的最新版本。

我不知道Ansible模块是否可以处理依赖插件,但CLI和UI确实可以。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68662364

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档