This commit is contained in:
parent
08f2c73ca3
commit
8c074857aa
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user