Jenkins pipeline how to change to another folder December 17, 2022 by Tarik You can use the dir step, example: dir("folder") { sh "pwd" } The folder can be relative or absolute path.