Jenkins is treating the dir step weirdly in docker agents.
dir
#!groovy pipeline { agent none stages { stage(\'test not in docker\') {