Skip to content

Hitting "can't modify frozen String" when passing jenkins_path as an ENV variable. #266

@atmosx

Description

@atmosx

Hi,

When I use the following code to set jenkins_path:

def jenkins_path
  ENV['JENKINS_PATH'] || '/'
end
[...]
client = JenkinsApi::Client.new(jenkins_path: jenkins_path)

Calling the handler fails with can't modify frozen String because of gsub!. If I pass the path as a string ('/jenkins') when creating the client object works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions