skip to Main Content

Getting this error:-
jenkins_api_client-1.5.3 requires ruby version ~> 2.1, which is incompatible
with the current version, ruby 3.1.2p20

I have tried all the possibilities from this documentation to install version 2.7.3 https://linuxize.com/post/how-to-install-ruby-on-ubuntu-20-04/

But it is not installing the ruby showing the warning as "ruby-2.7.3 is past its end of life and is now unsupported" and not proceeding further

2

Answers


  1. You may also try ruby-install, per the official documentation on Ruby installation.

    Nb, is your OS the same as the one in the link provided, i.e., ubuntu version 20.04?

    Login or Signup to reply.
  2. The error you’re encountering indicates that the Jenkins API client version 1.5.3 is designed to work with Ruby versions around 2.1, which is not compatible with the current version of Ruby you have installed (Ruby 3.1.2p20).

    The warning message you mentioned, stating that "ruby-2.7.3 is past its end of life and is now unsupported," is likely because Ruby 2.7.3 is no longer actively maintained, but it should still be compatible with the Jenkins API client version you’re trying to install.

    You can try to upgrade the Jenkins API client to a version compatible with the latest ruby version.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search