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

我甚至开始在我的Ansible YML中创建这个列表,但它非常长,并且名称有时与存储库列表here不匹配
- 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的解决方案也可以很好地工作。谢谢!
发布于 2021-08-05 08:38:40
在Here上列出推荐的插件。
- 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发布于 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确实可以。
https://stackoverflow.com/questions/68662364
复制相似问题