jenkins離線外掛下載

两个黄鹂鸣翠柳丶發表於2024-05-30

此工具可以下載外掛及其依賴
專案地址:https://github.com/jenkinsci/plugin-installation-manager-tool
下載外掛的工具: jenkins-plugin-manager-2.13.0.jar
依賴:java

[root@ubuntu ~/jenkins-plugins/jenkins-2.452.1]# apt install openjdk-16-jdk -y

用法

  • -w 透過war包指定jenkins版本
  • -d 指定外掛的存放目錄
  • -f 外掛列表的文字檔案
[root@ubuntu ~/jenkins-plugins/jenkins-2.452.1]# java -jar jenkins-plugin-manager-2.13.0.jar -w jenkins.war -d ./plugins/ -f plugins.txt
Done
[root@ubuntu ~/jenkins-plugins/jenkins-2.452.1]# cat plugins.txt | head
git
gitlab-plugin
harbor
ssh-credentials
ionicons-api
git
gitlab-plugin
harbor
ssh-credentials
ionicons-api
[root@ubuntu ~/jenkins-plugins/jenkins-2.452.1]# ls plugins/
ant.jpi                                 commons-lang3-api.jpi    gitlab-merge-request-jenkins.jpi  javax-mail-api.jpi          mailer.jpi                     pipeline-stage-step.jpi           token-macro.jpi
antisamy-markup-formatter.jpi           commons-text-api.jpi     gitlab-oauth.jpi                  jaxb.jpi                    matrix-project.jpi             pipeline-stage-tags-metadata.jpi  trilead-api.jpi
apache-httpcomponents-client-4-api.jpi  credentials-binding.jpi  gitlab-plugin.jpi                 jersey2-api.jpi             maven-plugin.jpi               plain-credentials.jpi             variant.jpi
apache-httpcomponents-client-5-api.jpi  credentials.jpi          gradle.jpi                        joda-time-api.jpi           metrics.jpi                    plugin-util-api.jpi               workflow-api.jpi
asm-api.jpi                             display-url-api.jpi      gson-api.jpi                      jquery3-api.jpi             mina-sshd-api-common.jpi       pyenv-pipeline.jpi                workflow-basic-steps.jpi
authentication-tokens.jpi               docker-commons.jpi       handy-uri-templates-2-api.jpi     jsch.jpi                    mina-sshd-api-core.jpi         resource-disposer.jpi             workflow-cps.jpi
bootstrap5-api.jpi                      docker-java-api.jpi      harbor.jpi                        json-api.jpi                okhttp-api.jpi                 scm-api.jpi                       workflow-durable-task-step.jpi
bouncycastle-api.jpi                    docker-plugin.jpi        instance-identity.jpi             json-path-api.jpi           pipeline-build-step.jpi        script-security.jpi               workflow-job.jpi
branch-api.jpi                          durable-task.jpi         ionicons-api.jpi                  junit.jpi                   pipeline-groovy-lib.jpi        snakeyaml-api.jpi                 workflow-multibranch.jpi
build-timeout.jpi                       echarts-api.jpi          jackson2-api.jpi                  kubernetes-client-api.jpi   pipeline-input-step.jpi        sonar.jpi                         workflow-scm-step.jpi
caffeine-api.jpi                        font-awesome-api.jpi     jakarta-activation-api.jpi        kubernetes-credentials.jpi  pipeline-milestone-step.jpi    ssh-credentials.jpi               workflow-step-api.jpi
checks-api.jpi                          git-client.jpi           jakarta-mail-api.jpi              kubernetes.jpi              pipeline-model-api.jpi         ssh-slaves.jpi                    workflow-support.jpi
cloud-stats.jpi                         git.jpi                  javadoc.jpi                       localization-support.jpi    pipeline-model-definition.jpi  structs.jpi                       ws-cleanup.jpi
cloudbees-folder.jpi                    gitlab-api.jpi           javax-activation-api.jpi          localization-zh-cn.jpi      pipeline-model-extensions.jpi  timestamper.jpi

相關文章