HtmlUnit does not appear to support the [key] syntax for setting property IDs in ECMAScript objects. To work around this, create an object specifically for the request headers and set the property using the standard syntax instead of setting it during object creation.
Fixes an issue introduced by #491 and will allow jenkinsci/bom#3524 to be merged.
Testing done
Tested locally using the PCT on the weekly line. Was failing before this change and succeeds afterwards.
Submitter checklist
[x] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
[x] Ensure that the pull request title represents the desired changelog entry
[x] Please describe what you did
[x] Link to relevant issues in GitHub or Jira
[x] Link to relevant pull requests, esp. upstream and downstream changes
[x] Ensure you have provided tests - that demonstrates feature works or fixes the issue
@basil and @timja: not specifically related to this fix, but Linux-based executors seem to be stuck on https://ci.jenkins.io/. Can someone investigate that?
HtmlUnit does not appear to support the
[key]
syntax for setting property IDs in ECMAScript objects. To work around this, create an object specifically for the request headers and set the property using the standard syntax instead of setting it during object creation.Fixes an issue introduced by #491 and will allow jenkinsci/bom#3524 to be merged.
Testing done
Tested locally using the PCT on the weekly line. Was failing before this change and succeeds afterwards.
Submitter checklist