Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72203

install-plugin over jenkins-cli.jar is not working anymore (regression in 2.428)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • cli
    • - Jenkins docker image updated to latest version 2.428
      - jenkins-cli 2.428
      - Java 11.0.15+10 OpenJDK Temurin
    • 2.429

      Hi there,

      I currently can't run the jenkins-cli command "install-plugin" with the latest version of the jenkins-cli.jar. I get the following error:

      ERROR: URI is not absolute

       

      Downgrading jenkins to 2.426 makes install-plugin work again.
      I haven't tested jenkins 2.427, but 2.428 definitly throws me this error, when I try to install/update a plugin over the CLI.

      My command looks like this:

      java -jar ./jenkins-cli.jar -s http://localhost:8080 -auth user:pw install-plugin credentials

      Running it from within the docker container as root.

      I have to say, the docker-image is jenkins/jenkins:lts-jdk11 from 04-05-2022.
      If I update jenkins, I update the jenkins.war and the plugins within the container over a script.

      This is a summary of that said script:

      • Download latest jenkins-cli.jar from localhost/jnlpJars/jenkins-cli.jar
      • Download latest jenkins.war
      • Replace current jenkins.war and create a backup
      • Get list of plugins with list-plugins and parse updatable plugins (that still works fine)
      • Update plugins with install-plugin (this is, where the error occurs).

      I tried different plugins, it is always the same error.

      As I said, rollback to 2.426 and install-plugin works without a problem.

      Maybe there is an easy solution to this, I'm just missing, because I'm not very good with URI related issues. Help would be highly appreciated.

          [JENKINS-72203] install-plugin over jenkins-cli.jar is not working anymore (regression in 2.428)

          Fabian König created issue -
          Fabian König made changes -
          Description Original: Hi there,

          I currently can't run the jenkins-cli command "install-plugin" with the latest version of the jenkins-cli.jar. I get the following error: *ERROR: URI is not absolute*

           

          Downgrading jenkins to 2.426 makes install-plugin work again.
          I haven't tested jenkins 2.427, but 2.428 definitly throws me this error, when I try to install/update a plugin over the CLI.

          My command looks like this:

          *java -jar ./jenkins-cli.jar -s [http://localhost:8080|http://localhost:8080/] -auth user:pw install-plugin credentials*

          Running it from within the docker container as root.

          I have to say, the docker-image is jenkins/jenkins:lts-jdk11 from 04-05-2022.
          If I update jenkins, I update the jenkins.war and the plugins within the container over a script.

          This is a summary of that said script:
           * Download latest jenkins-cli.jar from localhost/jnlpJars/jenkins-cli.jar
           * Download latest jenkins.war
           * Replace current jenkins.war and create a backup
           * Get list of plugins with list-plugins and parse updatable plugins (that still works fine)
           * Update plugins with install-plugin (this is, where the error occurs).

          I tried different plugins, it is always the same error.

          As I said, rollback to 2.426 and install-plugin works without a problem.

          Maybe there is an easy solution to this, I'm just missing, because I'm not very good with URI related issues. Help would be highly appreciated.
          New: Hi there,

          I currently can't run the jenkins-cli command "install-plugin" with the latest version of the jenkins-cli.jar. I get the following error:

          *ERROR: URI is not absolute*

           

          Downgrading jenkins to 2.426 makes install-plugin work again.
          I haven't tested jenkins 2.427, but 2.428 definitly throws me this error, when I try to install/update a plugin over the CLI.

          My command looks like this:

          *java -jar ./jenkins-cli.jar -s [http://localhost:8080|http://localhost:8080/] -auth user:pw install-plugin credentials*

          Running it from within the docker container as root.

          I have to say, the docker-image is jenkins/jenkins:lts-jdk11 from 04-05-2022.
          If I update jenkins, I update the jenkins.war and the plugins within the container over a script.

          This is a summary of that said script:
           * Download latest jenkins-cli.jar from localhost/jnlpJars/jenkins-cli.jar
           * Download latest jenkins.war
           * Replace current jenkins.war and create a backup
           * Get list of plugins with list-plugins and parse updatable plugins (that still works fine)
           * Update plugins with install-plugin (this is, where the error occurs).

          I tried different plugins, it is always the same error.

          As I said, rollback to 2.426 and install-plugin works without a problem.

          Maybe there is an easy solution to this, I'm just missing, because I'm not very good with URI related issues. Help would be highly appreciated.
          Basil Crow made changes -
          Summary Original: install-plugin over jenkins-cli.jar is not working anymore New: install-plugin over jenkins-cli.jar is not working anymore (regression in 2.428)
          Basil Crow made changes -
          Labels Original: cli install-plugin jenkins-cli New: cli install-plugin jenkins-cli regression
          Basil Crow made changes -
          Link New: This issue is caused by JENKINS-72028 [ JENKINS-72028 ]
          Mark Waite made changes -
          Remote Link New: This issue links to "PR-8565 that introduced the bug in Jenkins 2.428 (Web Link)" [ 28990 ]
          Basil Crow made changes -
          Released As New: 2.429
          Assignee New: Basil Crow [ basil ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Alexander Brandes made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

            basil Basil Crow
            fakoelobster Fabian König
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: