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 {
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 {