Currently i am using Jenkins pipeline script.
For running one command, I need to access a folder outside its workspace directory.
I tried sh \"cd $wor
sh \"cd $wor
The dir wrapper can wrap, any other step, and it all works inside a steps block, for example:
dir
steps
steps { sh "pwd" dir('your-sub-directory'){ sh "pwd" } sh "pwd" }