SyntaxFix
Write A Post
Hire A Developer
Questions
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" }