Chdir into build

Current working directory is not preserved across stages.
add_jenkins_pipeline
Eugene Kim 6 years ago
parent cbdcf542c8
commit 4ec018702d
  1. 9
      Jenkinsfile

9
Jenkinsfile vendored

@ -15,19 +15,22 @@ cmake ..'''
} }
stage('Build') { stage('Build') {
steps { steps {
sh 'make' sh '''cd build
make'''
} }
} }
stage('Install') { stage('Install') {
steps { steps {
sh '''rm -rf destdir sh '''cd build
rm -rf destdir
make DESTDIR=`pwd`/destdir install make DESTDIR=`pwd`/destdir install
''' '''
} }
} }
stage('Package') { stage('Package') {
steps { steps {
sh '''find -d destdir/usr/local | \\ sh '''cd build
find -d destdir/usr/local | \\
sed -n \'s@^destdir/usr/local/@@p\' | \\ sed -n \'s@^destdir/usr/local/@@p\' | \\
tr \'\\n\' \'\\0\' | \\ tr \'\\n\' \'\\0\' | \\
cpio -o0 -Hnewc -v | \\ cpio -o0 -Hnewc -v | \\

Loading…
Cancel
Save