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') {
steps {
sh 'make'
sh '''cd build
make'''
}
}
stage('Install') {
steps {
sh '''rm -rf destdir
sh '''cd build
rm -rf destdir
make DESTDIR=`pwd`/destdir install
'''
}
}
stage('Package') {
steps {
sh '''find -d destdir/usr/local | \\
sh '''cd build
find -d destdir/usr/local | \\
sed -n \'s@^destdir/usr/local/@@p\' | \\
tr \'\\n\' \'\\0\' | \\
cpio -o0 -Hnewc -v | \\

Loading…
Cancel
Save