jenkinsci / plugin-installation-manager-tool

Plugin Manager CLI tool for Jenkins
MIT License
401 stars 204 forks source link

Unable to download ssh-agent plugin via plugin manager #275

Open reach2ravikumarp opened 3 years ago

reach2ravikumarp commented 3 years ago

We are trying to download and install ssh-agent through plugin manager by specifying the plugin Id as and the version as <1.20> it is unable to install but other plugins gets installed. Please let us know what I am missing. CLI version: 2.5.0

content on plugins.yaml

plugins:
  - artifactId: git
    source:
      version: latest
  - artifactId: configuration-as-code
    source:
      version: latest
  - artifactId: groovy
    source:
      version: latest
  - artifactId: job-dsl
    source:
      version: latest
  - artifactId: active-directory
    source:
      version: latest
  - artifactId: ssh-agent
    source:
      version: 1.20
  - artifactId: ssh
timja commented 3 years ago

what's the error?

reach2ravikumarp commented 3 years ago

CLI OUTPUT:

---> Running in d8424df2592b File containing list of plugins to be downloaded: ./plugins.yaml Reading in plugins from ./plugins.yaml

No directory to download plugins entered. Will use default of /usr/share/jenkins/ref/plugins No CLI option or environment variable set for update center, using default of https://updates.jenkins.io/update-center.json No CLI option or environment variable set for experimental update center, using default of https://updates.jenkins.io/experimental/update-center.json No CLI option or environment variable set for incrementals mirror, using default of https://repo.jenkins-ci.org/incrementals No CLI option or environment variable set for plugin info, using default of https://updates.jenkins.io/plugin-versions.json No war entered. Will use default of /usr/share/jenkins/jenkins.war Jenkins version: 2.263.2-cb-4

Retrieving update center information Created cache at: /tmp/jenkins Cache miss for: update-center-2.263.2-cb-4 Cache miss for: experimental-update-center-2.263.2-cb-4 Cache miss for: plugin-versions Couldn't find checksum for git at version: latest

git depends on: workflow-scm-step 2.11 workflow-step-api 2.23 credentials 2.3.14 git-client 3.6.0 mailer 1.32.1 scm-api 2.6.4 script-security 1.75 ssh-credentials 1.18.1 structs 1.20 Setting checksum for: workflow-scm-step to fgtY8ip1eck38wgcZ8JJ1OrWeOAalUR4/dWbDL46iXw=

workflow-scm-step depends on: workflow-step-api 2.23 Setting checksum for: workflow-step-api to 4OOcvgw+v7LT+A7f70cNPH0DPH3q+sjG5VPn05HqEoc=

workflow-step-api depends on: structs 1.20 Setting checksum for: credentials to Yt1SWoBFW27T6u0cUdesZUYYMEI29DhA048HlOge3RI=

credentials depends on: structs 1.20 Setting checksum for: git-client to YSF0mAiiNfxKEvSlvZfLYcAKnSq3xcSS8YJS+Jfdxxk=

git-client depends on: apache-httpcomponents-client-4-api 4.5.13-1.0 credentials 2.3.14 jsch 0.1.55.2 script-security 1.75 ssh-credentials 1.18.1 structs 1.20 trilead-api 1.0.13 Setting checksum for: mailer to CwReqH78KJ/MrVWsUeTJA5RdloO3G0hmfhlEDkKi02g=

mailer depends on: display-url-api 2.3.4 Setting checksum for: scm-api to k1y65LRmeNWt+fqsmmgCn1KgTg0MickDinq5XKa2dtw=

scm-api depends on: structs 1.20 Setting checksum for: script-security to 46ntxSuoQmaVu6ShnDGuQcOk6WwgpH/PX+gOd4UZxLg=

script-security has no dependencies Setting checksum for: ssh-credentials to jbkIxIRzfyYM+rZoKkLL6vOQs7nv2HklN1aR5Fw3BJI=

ssh-credentials depends on: credentials 2.3.14 trilead-api 1.0.13 Setting checksum for: structs to fnhhNWo3qmpydGLXrqcW3ZMHBxJS9zScJybWSnc/6zo=

structs has no dependencies Setting checksum for: apache-httpcomponents-client-4-api to H6Wtr80EPFgqm27ESmo3Fm23e7bVt9LE+ZAq0mOmVjY=

apache-httpcomponents-client-4-api has no dependencies Setting checksum for: jsch to zcdL+OQ+tArmrZi6L4ZsiJFAgDhpnam4NlGKHYkj/EQ=

jsch depends on: ssh-credentials 1.18.1 trilead-api 1.0.13 Setting checksum for: trilead-api to YrRoOOSTz8aVA4K05JddhlzTv7/FitpwS53Zb/EB5Fc=

trilead-api has no dependencies Setting checksum for: display-url-api to 1JoJw0ZFVBj0XrNNiD48gsoA1/pYzc4aRSIk4DJAHkE=

display-url-api has no dependencies Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Setting checksum for: git to gzQ5AL2IPgeiJP4eOYw01IHrjk2cP5GG2FsQfQB7ZSg= Couldn't find checksum for configuration-as-code at version: latest

configuration-as-code depends on: snakeyaml-api 1.27.0 Setting checksum for: snakeyaml-api to ElUO5EweRQAHyVnzPS/6cW+4xq8hfZhIgPrEjd+FQuA=

snakeyaml-api has no dependencies Setting checksum for: configuration-as-code to diOcOromWyfmxnNK3AjseHP3DYSSUnFwnegSUf2hkoU= Setting checksum for: configuration-as-code to diOcOromWyfmxnNK3AjseHP3DYSSUnFwnegSUf2hkoU= Couldn't find checksum for groovy at version: latest

groovy depends on: script-security 1.75 structs 1.20 Setting checksum for: script-security to 46ntxSuoQmaVu6ShnDGuQcOk6WwgpH/PX+gOd4UZxLg=

script-security has no dependencies Setting checksum for: structs to fnhhNWo3qmpydGLXrqcW3ZMHBxJS9zScJybWSnc/6zo=

structs has no dependencies Setting checksum for: groovy to rcMnjL3/X2LJA1tmfPU/+lQ1Yu8Yr2GR9Q6yxwrttrA= Setting checksum for: groovy to rcMnjL3/X2LJA1tmfPU/+lQ1Yu8Yr2GR9Q6yxwrttrA= Setting checksum for: groovy to rcMnjL3/X2LJA1tmfPU/+lQ1Yu8Yr2GR9Q6yxwrttrA= Couldn't find checksum for job-dsl at version: latest

job-dsl depends on: structs 1.20 script-security 1.75 Setting checksum for: structs to fnhhNWo3qmpydGLXrqcW3ZMHBxJS9zScJybWSnc/6zo=

structs has no dependencies Setting checksum for: script-security to 46ntxSuoQmaVu6ShnDGuQcOk6WwgpH/PX+gOd4UZxLg=

script-security has no dependencies Setting checksum for: job-dsl to cHGjXXXQWT48vtaVugzuQRM/MXU7h67upMbgYkUnsiI= Setting checksum for: job-dsl to cHGjXXXQWT48vtaVugzuQRM/MXU7h67upMbgYkUnsiI= Setting checksum for: job-dsl to cHGjXXXQWT48vtaVugzuQRM/MXU7h67upMbgYkUnsiI= Couldn't find checksum for active-directory at version: latest

active-directory depends on: mailer 1.32.1 Setting checksum for: mailer to CwReqH78KJ/MrVWsUeTJA5RdloO3G0hmfhlEDkKi02g=

mailer depends on: display-url-api 2.3.4 Setting checksum for: display-url-api to 1JoJw0ZFVBj0XrNNiD48gsoA1/pYzc4aRSIk4DJAHkE=

display-url-api has no dependencies Setting checksum for: active-directory to 3BKDBBSMPMxSsV9GblPciUCuOnJane8yx97mitd2PbQ= Setting checksum for: active-directory to 3BKDBBSMPMxSsV9GblPciUCuOnJane8yx97mitd2PbQ= Setting checksum for: active-directory to 3BKDBBSMPMxSsV9GblPciUCuOnJane8yx97mitd2PbQ= Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM= Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM=

ssh-agent depends on: workflow-step-api 2.23 bouncycastle-api 2.18 credentials 2.3.14 ssh-credentials 1.18.1 Setting checksum for: workflow-step-api to 4OOcvgw+v7LT+A7f70cNPH0DPH3q+sjG5VPn05HqEoc=

workflow-step-api depends on: structs 1.20 Setting checksum for: bouncycastle-api to aPopFIGO8P0hZ21gKdJEPlU8zs620KTIbRSPOwR4/18=

bouncycastle-api has no dependencies Setting checksum for: credentials to Yt1SWoBFW27T6u0cUdesZUYYMEI29DhA048HlOge3RI=

credentials depends on: structs 1.20 Setting checksum for: ssh-credentials to jbkIxIRzfyYM+rZoKkLL6vOQs7nv2HklN1aR5Fw3BJI=

ssh-credentials depends on: credentials 2.3.14 trilead-api 1.0.13 Setting checksum for: structs to fnhhNWo3qmpydGLXrqcW3ZMHBxJS9zScJybWSnc/6zo=

structs has no dependencies Setting checksum for: trilead-api to YrRoOOSTz8aVA4K05JddhlzTv7/FitpwS53Zb/EB5Fc=

trilead-api has no dependencies Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM= Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM= Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM= Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM= Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM= Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM= Setting checksum for: ssh-agent to n1DFJPF24LNEkaptIv9uD1W0U4lRz3ykoR3ZRgdmKXM= Couldn't find checksum for ssh at version: latest

ssh depends on: jsch 0.1.55.2 ssh-credentials 1.18.1 Setting checksum for: jsch to zcdL+OQ+tArmrZi6L4ZsiJFAgDhpnam4NlGKHYkj/EQ=

jsch depends on: ssh-credentials 1.18.1 trilead-api 1.0.13 Setting checksum for: ssh-credentials to jbkIxIRzfyYM+rZoKkLL6vOQs7nv2HklN1aR5Fw3BJI=

ssh-credentials depends on: credentials 2.3.14 trilead-api 1.0.13 Setting checksum for: trilead-api to YrRoOOSTz8aVA4K05JddhlzTv7/FitpwS53Zb/EB5Fc=

trilead-api has no dependencies Setting checksum for: credentials to Yt1SWoBFW27T6u0cUdesZUYYMEI29DhA048HlOge3RI=

credentials depends on: structs 1.20 Setting checksum for: structs to fnhhNWo3qmpydGLXrqcW3ZMHBxJS9zScJybWSnc/6zo=

structs has no dependencies Setting checksum for: ssh to 8TJes7AR09lavRKWsOXHKieErpSch2aQcTSL6khe5ug= Setting checksum for: ssh to 8TJes7AR09lavRKWsOXHKieErpSch2aQcTSL6khe5ug= Setting checksum for: ssh to 8TJes7AR09lavRKWsOXHKieErpSch2aQcTSL6khe5ug= Setting checksum for: ssh to 8TJes7AR09lavRKWsOXHKieErpSch2aQcTSL6khe5ug= Setting checksum for: ssh to 8TJes7AR09lavRKWsOXHKieErpSch2aQcTSL6khe5ug= Setting checksum for: ssh to 8TJes7AR09lavRKWsOXHKieErpSch2aQcTSL6khe5ug= Installed version (4.5.10-2.0) of apache-httpcomponents-client-4-api is less than minimum required version of 4.5.13-1.0, bundled plugin will beupgraded Installed version (2.22) of active-directory is less than minimum required version of 2.23, bundled plugin will be upgraded Will install new plugin configuration-as-code 1.46 Will install new plugin ssh 2.6.1 Installed version (1.0.10) of trilead-api is less than minimum required version of 1.0.13, bundled plugin will be upgraded Installed version (4.4.5) of git is less than minimum required version of 4.5.2, bundled plugin will be upgraded Will install new plugin groovy 2.3 Will install new plugin job-dsl 1.77 Installed version (3.5.1) of git-client is less than minimum required version of 3.6.0, bundled plugin will be upgraded Will use url: https://updates.jenkins.io/download/plugins/ssh/2.6.1/ssh.hpi to download ssh plugin Will use url: https://updates.jenkins.io/download/plugins/trilead-api/1.0.13/trilead-api.hpi to download trilead-api plugin Will use url: https://updates.jenkins.io/download/plugins/groovy/2.3/groovy.hpi to download groovy plugin Will use url: https://updates.jenkins.io/download/plugins/configuration-as-code/1.46/configuration-as-code.hpi to download configuration-as-codeplugin Will use url: https://updates.jenkins.io/download/plugins/active-directory/2.23/active-directory.hpi to download active-directory plugin Will use url: https://updates.jenkins.io/download/plugins/apache-httpcomponents-client-4-api/4.5.13-1.0/apache-httpcomponents-client-4-api.hpi to download apache-httpcomponents-client-4-api plugin Will use url: https://updates.jenkins.io/download/plugins/git/4.5.2/git.hpi to download git plugin Will use url: https://updates.jenkins.io/download/plugins/job-dsl/1.77/job-dsl.hpi to download job-dsl plugin Will use url: https://updates.jenkins.io/download/plugins/git-client/3.6.0/git-client.hpi to download git-client plugin Checksum valid for: apache-httpcomponents-client-4-api Checksum valid for: trilead-api Checksum valid for: groovy Checksum valid for: active-directory Checksum valid for: git-client Checksum valid for: git Checksum valid for: ssh Checksum valid for: configuration-as-code Checksum valid for: job-dsl Done Removing intermediate container d8424df2592b ---> 777ab0ad48c9

#########

timja commented 3 years ago

Looks like it worked now? Or am i missing something?

reach2ravikumarp commented 3 years ago

No, It is not working, ssh-agent plugin is not available under /var/jenkins_home/plugins, but remining expected plugins are available under the plugin directory

bash-4.4$ ls -l /var/jenkins_home/plugins/ total 14688 -rw-r--r--. 1 jenkins jenkins 613363 Jan 27 18:12 active-directory.jpi -rw-r--r--. 1 jenkins jenkins 1769549 Jan 27 18:12 apache-httpcomponents-client-4-api.jpi -rw-r--r--. 1 jenkins jenkins 2333107 Jan 27 18:12 configuration-as-code.jpi -rw-r--r--. 1 jenkins jenkins 3401746 Jan 27 18:12 git-client.jpi -rw-r--r--. 1 jenkins jenkins 562664 Jan 27 18:12 git.jpi -rw-r--r--. 1 jenkins jenkins 87919 Jan 27 18:12 groovy.jpi -rw-r--r--. 1 jenkins jenkins 2988582 Jan 27 18:12 job-dsl.jpi -rw-r--r--. 1 jenkins jenkins 45404 Jan 27 18:12 ssh.jpi -rw-r--r--. 1 jenkins jenkins 3215491 Jan 27 18:12 trilead-api.jpi bash-4.4$

timja commented 3 years ago

works on my machine =/

java -jar plugin-management-cli/target/jenkins-plugin-manager-2.5.1-SNAPSHOT.jar --verbose -f plugins.yaml -d plugins/ --war ~/Downloads/jenkins.war

-rw-r--r--  1 timja  staff   599K 27 Jan 19:18 active-directory.jpi
-rw-r--r--  1 timja  staff   1.7M 27 Jan 19:18 apache-httpcomponents-client-4-api.jpi
-rw-r--r--  1 timja  staff   4.7M 27 Jan 19:18 bouncycastle-api.jpi
-rw-r--r--  1 timja  staff   2.2M 27 Jan 19:18 configuration-as-code.jpi
-rw-r--r--  1 timja  staff   985K 27 Jan 19:18 credentials.jpi
-rw-r--r--  1 timja  staff    27K 27 Jan 19:18 display-url-api.jpi
-rw-r--r--  1 timja  staff   3.2M 27 Jan 19:18 git-client.jpi
-rw-r--r--  1 timja  staff   549K 27 Jan 19:18 git.jpi
-rw-r--r--  1 timja  staff    86K 27 Jan 19:18 groovy.jpi
-rw-r--r--  1 timja  staff   2.8M 27 Jan 19:18 job-dsl.jpi
-rw-r--r--  1 timja  staff   273K 27 Jan 19:18 jsch.jpi
-rw-r--r--  1 timja  staff   124K 27 Jan 19:18 mailer.jpi
-rw-r--r--  1 timja  staff   216K 27 Jan 19:18 scm-api.jpi
-rw-r--r--  1 timja  staff   1.0M 27 Jan 19:18 script-security.jpi
-rw-r--r--  1 timja  staff   272K 27 Jan 19:18 snakeyaml-api.jpi
-rw-r--r--  1 timja  staff   3.2M 27 Jan 19:18 ssh-agent.jpi
-rw-r--r--  1 timja  staff    64K 27 Jan 19:18 ssh-credentials.jpi
-rw-r--r--  1 timja  staff    44K 27 Jan 19:18 ssh.jpi
-rw-r--r--  1 timja  staff    43K 27 Jan 19:18 structs.jpi
-rw-r--r--  1 timja  staff   3.1M 27 Jan 19:18 trilead-api.jpi
-rw-r--r--  1 timja  staff    15K 27 Jan 19:18 workflow-scm-step.jpi
-rw-r--r--  1 timja  staff    75K 27 Jan 19:18 workflow-step-api.jpi
skundrik commented 3 years ago

Is it possible same or newer version is bundled in the jenkins.war inside WEB-INF\detached-plugins dir?

timja commented 3 years ago

well, you're using a cloudbees distribution by the looks of it (2.263.2-cb-4),

I assume it's related to that