Compare commits

...

12 Commits

Author SHA1 Message Date
Eugene Kim 4d38c6b1c0 Simplify build 6 years ago
Eugene Kim 7eecd8cb99 Properly indent shell scripts 6 years ago
Eugene Kim 32b5022e75 Save the build directory 6 years ago
Eugene Kim 8a2bd4afb7 Run cpio from ${PREFIX} 6 years ago
Eugene Kim a37e233383 Fix BSD-ism (find -d) 6 years ago
Eugene Kim 4ec018702d Chdir into build 6 years ago
Eugene Kim cbdcf542c8 Use our own agent image to eliminate sudo 6 years ago
Eugene Kim fc5af3430d Unroll &&; apt-get update -y; list packaged files 6 years ago
Eugene Kim 9cb71a4f4e apt-get update first before install 6 years ago
Eugene Kim fe2aeeff23 Drop sudo and instead run agent commands as root 6 years ago
Eugene Kim 0473adc7e0 sudo where necessary 6 years ago
Eugene Kim c59fa4ecc2 First pass at Jenkins pipeline 6 years ago
  1. 36
      Jenkinsfile

36
Jenkinsfile vendored

@ -0,0 +1,36 @@
pipeline {
agent {
docker {
image 'harmonyone/harmony-jenkins-agent:latest'
}
}
stages {
stage('Build & Install') {
steps {
sh '''
rm -rf destdir
install -d destdir/usr/local/include
install -d destdir/usr/local/lib
make PREFIX=`pwd`/destdir/usr/local install
'''
}
}
stage('Package') {
steps {
sh '''
find destdir/usr/local -depth | \\
sed -n \'s@^destdir/usr/local/@@p\' | \\
tr \'\\n\' \'\\0\' | \\
(cd destdir/usr/local && exec cpio -o0 -Hnewc -v) | \\
xz -9 > mcl.cpio.xz
'''
}
}
stage('Save Build') {
steps {
archiveArtifacts '**'
}
}
}
}
Loading…
Cancel
Save