void printDebug(msg) { println 'DEBUG: ' + msg } node('test') { printDebug(pwd()) stage('test') { sh label: 'script_label', script: 'cd openwrt; echo fuck you' } }