Jenkinsfile

This commit is contained in:
2020-05-28 14:44:20 +03:00
parent 2945c07a31
commit 3c94cce018

20
Jenkinsfile vendored
View File

@@ -32,7 +32,7 @@ node {
for (int i = 0; i < platforms.size(); ++i) { for (int i = 0; i < platforms.size(); ++i) {
if (_envmap["BUILD_${platforms[i]}"] == "1") { if (_envmap["BUILD_${platforms[i]}"] == "1") {
stage("${platforms[i]}-libs") { stage("${platforms[i]}-libs") {
_msg += build_docker("${platforms[i]}") //_msg += build_docker("${platforms[i]}")
} }
} }
} }
@@ -41,14 +41,16 @@ node {
agent { agent {
label 'master' label 'master'
} }
checkout scm steps {
sh "rm -rf share" checkout scm
sh "rm -v *.zip" sh "rm -rf share"
sh "mkdir -p build" sh "rm -v *.zip"
sh "cd build && cmake -DLIB=0 -DCMAKE_INSTALL_PREFIX=`pwd` ../" sh "mkdir -p build"
sh "cd build && make doc" sh "cd build && cmake -DLIB=0 -DCMAKE_INSTALL_PREFIX=`pwd` ../"
sh "cd share/doc && zip -r ../../pip_doc.zip pip" sh "cd build && make doc"
archiveArtifacts 'pip_doc.zip' sh "cd share/doc && zip -r ../../pip_doc.zip pip"
archiveArtifacts 'pip_doc.zip'
}
} }
echo "${_msg}" echo "${_msg}"
} }