path fixed for autdoc
All checks were successful
esbo_ds/ESBO-ETC/pipeline/head This commit looks good
All checks were successful
esbo_ds/ESBO-ETC/pipeline/head This commit looks good
This commit is contained in:
parent
48d59a8b70
commit
b880027a2a
31
Jenkinsfile
vendored
31
Jenkinsfile
vendored
@ -4,7 +4,6 @@ pipeline {
|
|||||||
SPHINX_DIR = 'docs'
|
SPHINX_DIR = 'docs'
|
||||||
BUILD_DIR = 'build/html'
|
BUILD_DIR = 'build/html'
|
||||||
SOURCE_DIR = 'source'
|
SOURCE_DIR = 'source'
|
||||||
DEPLOY_HOST = 'deployer@www.example.com:/path/to/docs/'
|
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
@ -24,14 +23,12 @@ pipeline {
|
|||||||
// clear out old files
|
// clear out old files
|
||||||
sh 'rm -rf ${BUILD_DIR}'
|
sh 'rm -rf ${BUILD_DIR}'
|
||||||
sh 'rm -f ${SPHINX_DIR}/sphinx-build.log'
|
sh 'rm -f ${SPHINX_DIR}/sphinx-build.log'
|
||||||
sh 'ls'
|
|
||||||
sh '''
|
sh '''
|
||||||
pyenv/bin/sphinx-build \
|
pyenv/bin/sphinx-build \
|
||||||
-w ${SPHINX_DIR}/sphinx-build.log \
|
-w ${SPHINX_DIR}/sphinx-build.log \
|
||||||
-b html ${SPHINX_DIR}/${SOURCE_DIR} ${SPHINX_DIR}/${BUILD_DIR}
|
-b html ${SPHINX_DIR}/${SOURCE_DIR} ${SPHINX_DIR}/${BUILD_DIR}
|
||||||
'''
|
'''
|
||||||
stash includes: 'docs/build/html/**/*.*', name: 'html'
|
stash includes: 'docs/build/html/**/*.*', name: 'html'
|
||||||
// archiveArtifacts 'docs/build/html/**/*.*', onlyIfSuccessful: true
|
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
failure {
|
failure {
|
||||||
@ -45,33 +42,9 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
unstash 'html'
|
unstash 'html'
|
||||||
sh 'ls docs/build/html'
|
sh 'rm -rf /opt/esbo-etc/html/*'
|
||||||
sh 'df -hT'
|
sh 'cp -rf docs/build/html /opt/esbo-etc/'
|
||||||
sh 'hostname'
|
|
||||||
sh 'cp -r 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'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -9,11 +9,11 @@
|
|||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# 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
|
# 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.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
|
||||||
# import os
|
import os
|
||||||
# import sys
|
import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
sys.path.insert(0, os.path.abspath('.'))
|
||||||
import sphinx_rtd_theme
|
# import sphinx_rtd_theme
|
||||||
|
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user