Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to cd into a directory with jenkins pipeline

steps {
    sh "pwd"
    dir('your-sub-directory') {
      sh "pwd"
    }
    sh "pwd"
} 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cd #directory #jenkins #pipeline
ADD COMMENT
Topic
Name
8+6 =