Thanks for the suggestions.
Before moving to openshift the agent was the same Windows Server as the Jenkins master. This seems to be the reason why the "new File()" part worked there, because it references the master system for some reason.
As daggett suggests the part should look like this:
def props = readJSON file: '.conf/config.json'
The Pipeline Utility Steps Plugin is required for this step.