In declarative pipeline inside stage/steps/script i at some point call jenkins.getInstance. After that, calling any sh command ends the stage prematurely without any error. For