|
|
@ -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 | \\ |
|
|
|