The executable version of Gem too old to have this method.
You can update:
gem update
But there may be other problems with starting your application in the old version of Ruby, for example, 1.9. Only versions 2.2 and higher are currently supported.
You might want to learn Jenkins to use the same version of Ruby that you use at runtime with RVM or Docker .
source share