Archive documents when build

This commit is contained in:
xross
2022-08-08 16:38:34 +01:00
parent 51f5d1f0b8
commit c811aac320

40
Jenkinsfile vendored
View File

@@ -42,8 +42,6 @@ pipeline {
dir('xua_unit_tests') { dir('xua_unit_tests') {
withVenv { withVenv {
runWaf('.', "configure clean build --target=xcore200") runWaf('.', "configure clean build --target=xcore200")
// runWaf('.', "configure clean build --target=xcoreai")
// stash name: 'xua_unit_tests', includes: 'bin/*xcoreai.xe, '
viewEnv() { viewEnv() {
runPython("TARGET=XCORE200 pytest -s") runPython("TARGET=XCORE200 pytest -s")
} }
@@ -55,42 +53,6 @@ pipeline {
} }
} }
} }
// stage('xcore.ai Verification') {
// agent {
// label 'xcore.ai-explorer'
// }
// options {
// skipDefaultCheckout()
// }
// stages{
// stage('Get View') {
// steps {
// xcorePrepareSandbox("${VIEW}", "${REPO}")
// }
// }
// stage('Unit tests') {
// steps {
// dir("${REPO}") {
// dir('tests') {
// dir('xua_unit_tests') {
// withVenv {
// unstash 'xua_unit_tests'
// viewEnv() {
// runPython("TARGET=XCOREAI pytest -s")
// }
// }
// }
// }
// }
// }
// }
// } // stages
// post {
// cleanup {
// cleanWs()
// }
// }
// }
stage('xCORE builds') { stage('xCORE builds') {
steps { steps {
dir("${REPO}") { dir("${REPO}") {
@@ -99,6 +61,8 @@ pipeline {
runXdoc('doc') runXdoc('doc')
} }
} }
// Archive all the generated .pdf docs
archiveArtifacts artifacts: "${REPO}/**/pdf/*.pdf", fingerprint: true, allowEmptyArchive: true
} }
} }
} }