path fixed for autdoc
esbo_ds/ESBO-ETC/pipeline/head This commit looks good Details

This commit is contained in:
Lukas Klass 2020-07-21 14:21:19 +02:00
parent 48d59a8b70
commit b880027a2a
2 changed files with 7 additions and 34 deletions

31
Jenkinsfile vendored
View File

@ -4,7 +4,6 @@ pipeline {
SPHINX_DIR = 'docs'
BUILD_DIR = 'build/html'
SOURCE_DIR = 'source'
DEPLOY_HOST = 'deployer@www.example.com:/path/to/docs/'
}
stages {
stage('Build') {
@ -24,14 +23,12 @@ pipeline {
// clear out old files
sh 'rm -rf ${BUILD_DIR}'
sh 'rm -f ${SPHINX_DIR}/sphinx-build.log'
sh 'ls'
sh '''
pyenv/bin/sphinx-build \
-w ${SPHINX_DIR}/sphinx-build.log \
-b html ${SPHINX_DIR}/${SOURCE_DIR} ${SPHINX_DIR}/${BUILD_DIR}
'''
stash includes: 'docs/build/html/**/*.*', name: 'html'
// archiveArtifacts 'docs/build/html/**/*.*', onlyIfSuccessful: true
}
post {
failure {
@ -45,33 +42,9 @@ pipeline {
}
steps {
unstash 'html'
sh 'ls docs/build/html'
sh 'df -hT'
sh 'hostname'
sh 'cp -r docs/build/html /opt/esbo-etc/'
sh 'rm -rf /opt/esbo-etc/html/*'
sh 'cp -rf docs/build/html /opt/esbo-etc/'
}
}
/*
stage('Deploy') {
steps {
sshagent(credentials: ['deployer']) {
sh '''#!/bin/bash
rm -f ${SPHINX_DIR}/rsync.log
RSYNCOPT=(-aze 'ssh -o StrictHostKeyChecking=no')
rsync "${RSYNCOPT[@]}" \
--exclude-from=${SPHINX_DIR}/rsync-exclude.txt \
--log-file=${SPHINX_DIR}/rsync.log \
--delete \
${BUILD_DIR}/ ${DEPLOY_HOST}
'''
}
}
post {
failure {
sh 'cat ${SPHINX_DIR}/rsync.log'
}
}
}
*/
}
}

View File

@ -9,11 +9,11 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import sphinx_rtd_theme
import os
import sys
sys.path.insert(0, os.path.abspath('.'))
# import sphinx_rtd_theme
# -- Project information -----------------------------------------------------