fix Jenkinsfile
Some checks failed
SHS Gitea/shstk/pipeline/head There was a failure building this commit
Some checks failed
SHS Gitea/shstk/pipeline/head There was a failure building this commit
This commit is contained in:
31
Jenkinsfile
vendored
31
Jenkinsfile
vendored
@@ -20,6 +20,10 @@ def build_docker(name, release_dir) {
|
||||
return "\n - ${image_name}"
|
||||
}
|
||||
node {
|
||||
options {
|
||||
copyArtifactPermission('*');
|
||||
buildDiscarder(logRotator(numToKeepStr: "20", artifactNumToKeepStr: "10"))
|
||||
}
|
||||
stage("checkout") {
|
||||
checkout scm
|
||||
}
|
||||
@@ -49,30 +53,3 @@ node {
|
||||
archiveArtifacts 'release/*'
|
||||
echo "${_msg}"
|
||||
}
|
||||
pipeline {
|
||||
agent {
|
||||
label 'master'
|
||||
}
|
||||
options {
|
||||
copyArtifactPermission('*');
|
||||
buildDiscarder(logRotator(numToKeepStr: "20", artifactNumToKeepStr: "10"))
|
||||
}
|
||||
stages {
|
||||
stage("PIP doc") {
|
||||
steps {
|
||||
checkout scm
|
||||
sh "rm -rf share"
|
||||
sh "rm -vf *.zip"
|
||||
sh "mkdir -p build"
|
||||
sh "cd build && cmake -DLOCAL=1 -DCMAKE_INSTALL_PREFIX=`pwd` -DDOC_LANG=English -DDOC_DIR=en ../ && make doc"
|
||||
sh "cd build && cmake -DLOCAL=1 -DCMAKE_INSTALL_PREFIX=`pwd` -DDOC_LANG=Russian -DDOC_DIR=ru ../ && make doc"
|
||||
sh "cd share/doc && zip -r ../../pip_doc.zip pip"
|
||||
sh "cp share/doc/pip/html/en/pip_en.qch ./"
|
||||
sh "cp share/doc/pip/html/ru/pip_ru.qch ./"
|
||||
archiveArtifacts 'pip_doc.zip'
|
||||
archiveArtifacts 'pip_en.qch'
|
||||
archiveArtifacts 'pip_ru.qch'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user