stash added
All checks were successful
esbo_ds/ESBO-ETC/pipeline/head This commit looks good

This commit is contained in:
Lukas Klass 2020-07-21 14:01:51 +02:00
parent 08f2c73ca3
commit 8c074857aa

29
Jenkinsfile vendored
View File

@ -1,10 +1,5 @@
pipeline { pipeline {
agent { agent none
dockerfile {
filename "Dockerfile"
args "-u root" //needed to get around permission issues
}
}
environment { environment {
SPHINX_DIR = 'docs' SPHINX_DIR = 'docs'
BUILD_DIR = 'build/html' BUILD_DIR = 'build/html'
@ -12,19 +7,20 @@ pipeline {
DEPLOY_HOST = 'deployer@www.example.com:/path/to/docs/' DEPLOY_HOST = 'deployer@www.example.com:/path/to/docs/'
} }
stages { stages {
stage('Install Dependencies') { stage('Build') {
agent {
dockerfile {
filename "Dockerfile"
args "-u root" //needed to get around permission issues
}
}
steps { steps {
// virtualenv may not be necessary with root, // Install dependencies
// but I still think it's a good idea.
sh ''' sh '''
virtualenv pyenv virtualenv pyenv
. pyenv/bin/activate . pyenv/bin/activate
pip3 install -r requirements.txt pip3 install -r requirements.txt
''' '''
}
}
stage('Build') {
steps {
// 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'
@ -43,6 +39,13 @@ pipeline {
} }
} }
} }
stage('Deploy') {
agent any
steps {
unstash 'html'
sh 'ls'
}
}
/* /*
stage('Deploy') { stage('Deploy') {
steps { steps {