diff --git a/Jenkinsfile b/Jenkinsfile index 2b84db0..8959c08 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,5 @@ pipeline { - agent { - dockerfile { - filename "Dockerfile" - args "-u root" //needed to get around permission issues - } - } + agent none environment { SPHINX_DIR = 'docs' BUILD_DIR = 'build/html' @@ -12,19 +7,20 @@ pipeline { DEPLOY_HOST = 'deployer@www.example.com:/path/to/docs/' } stages { - stage('Install Dependencies') { + stage('Build') { + agent { + dockerfile { + filename "Dockerfile" + args "-u root" //needed to get around permission issues + } + } steps { - // virtualenv may not be necessary with root, - // but I still think it's a good idea. + // Install dependencies sh ''' virtualenv pyenv . pyenv/bin/activate pip3 install -r requirements.txt ''' - } - } - stage('Build') { - steps { // clear out old files sh 'rm -rf ${BUILD_DIR}' sh 'rm -f ${SPHINX_DIR}/sphinx-build.log' @@ -43,6 +39,13 @@ pipeline { } } } + stage('Deploy') { + agent any + steps { + unstash 'html' + sh 'ls' + } + } /* stage('Deploy') { steps {